Upgrade to Django 2.1 (#710)

* Upgrade to Django 2.0

* more models

* i18n foo

* Update setup.py

* Fix Sentry exception PRETIXEU-JC

* Enforce slug uniqueness

* Import sorting

* Upgrade to Django 2.1

* Travis config

* Try to fix PostgreSQL failure

* Smaller test matrix

* staticfiles→static

* Include request in all authenticate() calls
This commit is contained in:
Raphael Michel
2018-08-06 12:48:46 +02:00
committed by GitHub
parent 0637490216
commit afd766999c
131 changed files with 491 additions and 263 deletions

View File

@@ -1,5 +1,5 @@
from django import urls
from django.conf import settings
from django.core import urlresolvers
from pretix.helpers.urls import build_absolute_uri
@@ -11,7 +11,7 @@ def test_site_url_domain():
def test_site_url_subpath():
settings.SITE_URL = 'https://example.com/presale'
old_prefix = urlresolvers.get_script_prefix()
urlresolvers.set_script_prefix('/presale/')
old_prefix = urls.get_script_prefix()
urls.set_script_prefix('/presale/')
assert build_absolute_uri('control:auth.login') == 'https://example.com/presale/control/login'
urlresolvers.set_script_prefix(old_prefix)
urls.set_script_prefix(old_prefix)