Merge pull request #557 from lkiesow/python-syntax-error
Fix Python Syntax Error
This commit is contained in:
@@ -23,6 +23,7 @@ class CollectionViewSet(viewsets.ModelViewSet):
|
|||||||
order_direction = self.request.query_params.get('order_direction', 'asc')
|
order_direction = self.request.query_params.get('order_direction', 'asc')
|
||||||
|
|
||||||
valid_order_by = ['name', 'updated_at', 'start_date']
|
valid_order_by = ['name', 'updated_at', 'start_date']
|
||||||
|
if order_by not in valid_order_by:
|
||||||
order_by = 'updated_at'
|
order_by = 'updated_at'
|
||||||
|
|
||||||
if order_direction not in ['asc', 'desc']:
|
if order_direction not in ['asc', 'desc']:
|
||||||
|
|||||||
Reference in New Issue
Block a user