fixed some issues with the ordering, test cases and migrations.

This commit is contained in:
jonaswinkler
2020-12-16 18:40:19 +01:00
parent 69c04a209a
commit ecfae9dadd
4 changed files with 40 additions and 12 deletions

View File

@@ -2,6 +2,7 @@ import textwrap
from django.conf import settings
from django.core.checks import Error, register
from django.core.exceptions import FieldError
from django.db.utils import OperationalError, ProgrammingError
from documents.signals import document_consumer_declaration
@@ -16,7 +17,7 @@ def changed_password_check(app_configs, **kwargs):
try:
encrypted_doc = Document.objects.filter(
storage_type=Document.STORAGE_TYPE_GPG).first()
except (OperationalError, ProgrammingError):
except (OperationalError, ProgrammingError, FieldError):
return [] # No documents table yet
if encrypted_doc: