diff --git a/src/documents/filters.py b/src/documents/filters.py index 3e828e332..cdf6f63b0 100755 --- a/src/documents/filters.py +++ b/src/documents/filters.py @@ -37,7 +37,7 @@ class TagFilterSet(FilterSet): class DocumentTypeFilterSet(FilterSet): - class Meta(object): + class Meta: model = DocumentType fields = { "name": [ diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index 683fe5e1c..da1b8d17e 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -12,7 +12,7 @@ class CorrespondentSerializer(serializers.HyperlinkedModelSerializer): class DocumentTypeSerializer(serializers.HyperlinkedModelSerializer): - class Meta(object): + class Meta: model = DocumentType fields = ("id", "slug", "name", "automatic_classification") diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 21a00869a..b0eb809d3 100755 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -81,7 +81,7 @@ INSTALLED_APPS = [ "rest_framework", "crispy_forms", - "django_filters" + "django_filters", ]