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