mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
logging: don't group by logging_group
This commit is contained in:
parent
d6d37efa35
commit
2b0b3a70a7
6 changed files with 54 additions and 104 deletions
|
|
@ -27,7 +27,8 @@ from .filters import (
|
|||
CorrespondentFilterSet,
|
||||
DocumentFilterSet,
|
||||
TagFilterSet,
|
||||
DocumentTypeFilterSet
|
||||
DocumentTypeFilterSet,
|
||||
LogFilterSet
|
||||
)
|
||||
|
||||
import documents.index as index
|
||||
|
|
@ -147,12 +148,14 @@ class DocumentViewSet(RetrieveModelMixin,
|
|||
|
||||
class LogViewSet(ReadOnlyModelViewSet):
|
||||
model = Log
|
||||
queryset = Log.objects.all().by_group()
|
||||
|
||||
queryset = Log.objects.all()
|
||||
serializer_class = LogSerializer
|
||||
pagination_class = StandardPagination
|
||||
permission_classes = (IsAuthenticated,)
|
||||
filter_backends = (DjangoFilterBackend, OrderingFilter)
|
||||
ordering_fields = ("time",)
|
||||
filter_class = LogFilterSet
|
||||
ordering_fields = ("created",)
|
||||
|
||||
|
||||
class SearchView(APIView):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue