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,6 +1,6 @@
{% load compress %}
{% load i18n %}
{% load staticfiles %}
{% load static %}
<!DOCTYPE html>
<html>
<head>

View File

@@ -1,6 +1,6 @@
{% extends "pretixcontrol/auth/base.html" %}
{% load bootstrap3 %}
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% block content %}
<form class="form-signin" action="" method="post">

View File

@@ -1,6 +1,6 @@
{% extends "pretixcontrol/auth/base.html" %}
{% load bootstrap3 %}
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% block content %}
<form class="form-signin" action="" method="post">

View File

@@ -1,7 +1,7 @@
{% extends "pretixcontrol/auth/base.html" %}
{% load bootstrap3 %}
{% load i18n %}
{% load staticfiles %}
{% load static %}
{% block content %}
<form class="form-signin" action="" method="post">
{% bootstrap_form_errors form type='all' layout='inline' %}

View File

@@ -1,7 +1,7 @@
{% extends "pretixcontrol/auth/base.html" %}
{% load bootstrap3 %}
{% load i18n %}
{% load staticfiles %}
{% load static %}
{% load compress %}
{% block content %}
<form class="form-signin" action="" method="post" id="u2f-form">

View File

@@ -1,6 +1,6 @@
{% extends "pretixcontrol/auth/base.html" %}
{% load bootstrap3 %}
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% block content %}
{% if not error %}

View File

@@ -1,6 +1,6 @@
{% extends "pretixcontrol/auth/base.html" %}
{% load bootstrap3 %}
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% block content %}
<form class="form-signin" action="" method="post">

View File

@@ -1,6 +1,6 @@
{% extends "pretixcontrol/auth/base.html" %}
{% load bootstrap3 %}
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% block content %}
<form class="form-signin" action="" method="post">

View File

@@ -1,5 +1,5 @@
{% load compress %}
{% load staticfiles %}
{% load static %}
{% load i18n %}
{% load hijack_tags %}
{% load statici18n %}

View File

@@ -1,6 +1,6 @@
{% extends "pretixcontrol/base.html" %}
{% load i18n %}
{% load staticfiles %}
{% load static %}
{% block title %}{{ request.event.name }}{% endblock %}
{% block nav %}

View File

@@ -2,7 +2,7 @@
{% load i18n %}
{% load eventurl %}
{% load bootstrap3 %}
{% load staticfiles %}
{% load static %}
{% block title %}{{ request.event.name }}{% endblock %}
{% block content %}
<h1>

View File

@@ -1,6 +1,6 @@
{% extends "pretixcontrol/items/base.html" %}
{% load i18n %}
{% load staticfiles %}
{% load static %}
{% block title %}{% trans "Event logs" %}{% endblock %}
{% block inside %}
<h1>{% trans "Event logs" %}</h1>

View File

@@ -1,6 +1,6 @@
{% extends "pretixcontrol/event/settings_base.html" %}
{% load i18n %}
{% load staticfiles %}
{% load static %}
{% load bootstrap3 %}
{% block inside %}

View File

@@ -1,6 +1,6 @@
{% extends "pretixcontrol/event/settings_base.html" %}
{% load i18n %}
{% load staticfiles %}
{% load static %}
{% load bootstrap3 %}
{% load eventurl %}
{% load eventsignal %}

View File

@@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}
{% load i18n %}
<ul class="list-group">
{% for log in obj.all_logentries %}

View File

@@ -1,6 +1,6 @@
{% extends "pretixcontrol/event/base.html" %}
{% load i18n %}
{% load staticfiles %}
{% load static %}
{% load compress %}
{% block title %}{% trans "PDF Editor" %}{% endblock %}
{% block custom_header %}

View File

@@ -1,4 +1,4 @@
{% load staticfiles %}
{% load static %}
{% for family, styles in fonts.items %}
{% for style, formats in styles.items %}

View File

@@ -1,7 +1,7 @@
{% extends "pretixcontrol/base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% load staticfiles %}
{% load static %}
{% load compress %}
{% block title %}{% trans "Add a two-factor authentication device" %}{% endblock %}
{% block content %}

View File

@@ -2,7 +2,7 @@
{% load i18n %}
{% load bootstrap3 %}
{% load compress %}
{% load staticfiles %}
{% load static %}
{% block content %}
<form class="form-signin" id="u2f-form" action="" method="post">
{% csrf_token %}