fix: model ordering (#521)
* fix: model ordering * fix: my pages and create by others pages
This commit is contained in:
parent
c6ba93da72
commit
5152deb2d0
8 changed files with 51 additions and 10 deletions
|
|
@ -213,7 +213,9 @@ class ImportServiceEndpoint(BaseAPIView):
|
|||
|
||||
def get(self, request, slug):
|
||||
try:
|
||||
imports = Importer.objects.filter(workspace__slug=slug)
|
||||
imports = Importer.objects.filter(workspace__slug=slug).order_by(
|
||||
"-created_at"
|
||||
)
|
||||
serializer = ImporterSerializer(imports, many=True)
|
||||
return Response(serializer.data)
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue