From bcd92200213101ac02d8db10e4bf6c81abd12ba1 Mon Sep 17 00:00:00 2001 From: Jonas Winkler Date: Tue, 11 Dec 2018 12:26:44 +0100 Subject: [PATCH] minor changes --- src/documents/filters.py | 2 +- src/documents/serialisers.py | 2 +- src/paperless/settings.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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", ]