removed deprecated psycopg2

This commit is contained in:
vabene1111
2020-12-14 15:11:41 +01:00
parent 7732aa7646
commit 56c9edd328
3 changed files with 2 additions and 3 deletions

View File

@@ -243,7 +243,7 @@ def history(request):
@group_required('admin')
def system(request):
postgres = False if settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql_psycopg2' else True
postgres = False if (settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql_psycopg2' or settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql') else True
secret_key = False if os.getenv('SECRET_KEY') else True