mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Allow plugins to use django.contrib.postgres
This commit is contained in:
@@ -307,6 +307,10 @@ INSTALLED_APPS = [
|
||||
'phonenumber_field'
|
||||
]
|
||||
|
||||
if db_backend == 'postgresql':
|
||||
# ALlow plugins to use django.contrib.postgres
|
||||
INSTALLED_APPS.insert(0, 'django.contrib.postgres')
|
||||
|
||||
try:
|
||||
import django_extensions # noqa
|
||||
INSTALLED_APPS.append('django_extensions')
|
||||
|
||||
Reference in New Issue
Block a user