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