ordering for backoffice establishments
This commit is contained in:
parent
e1d417a9e6
commit
41660933db
|
|
@ -325,6 +325,12 @@ class EstablishmentBackOfficeViewSet(EstablishmentDocumentViewSet):
|
|||
OrderingFilterBackend
|
||||
]
|
||||
|
||||
ordering_fields = {
|
||||
'created': {
|
||||
'field': 'created'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class MobileEstablishmentDocumentViewSet(EstablishmentDocumentViewSet):
|
||||
|
||||
|
|
@ -335,12 +341,6 @@ class MobileEstablishmentDocumentViewSet(EstablishmentDocumentViewSet):
|
|||
GeoSpatialOrderingFilterBackend,
|
||||
]
|
||||
|
||||
ordering_fields = {
|
||||
'created': {
|
||||
'field': 'created'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class ProductDocumentViewSet(BaseDocumentViewSet):
|
||||
"""Product document ViewSet."""
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user