Skip to content
Snippets Groups Projects
Commit 45ae538b authored by Nadja Geisler's avatar Nadja Geisler :sunny:
Browse files

Merge branch 'meta-upgrades' into 'main'

Upgrade Django to 3.2

Closes #114

See merge request !134
parents 32a78319 7460fa89
No related branches found
No related tags found
1 merge request!134Upgrade Django to 3.2
Pipeline #107519 passed
from bootstrap_datepicker_plus import DateTimePickerInput from bootstrap_datepicker_plus import DateTimePickerInput
from django import forms from django import forms
from django.forms.utils import ErrorList from django.forms.utils import ErrorList
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from AKModel.models import Event, AKCategory, AKRequirement from AKModel.models import Event, AKCategory, AKRequirement
......
This diff is collapsed.
{% extends "admin/base_site.html" %} {% extends "admin/login.html" %}
{% load i18n static %} {% load i18n static %}
{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/login.css" %}">
{{ form.media }}
{% endblock %}
{% block bodyclass %}{{ block.super }} login{% endblock %}
{% block usertools %}{% endblock %}
{% block nav-global %}{% endblock %}
{% block nav-sidebar %}{% endblock %}
{% block content_title %}{% endblock %}
{% block breadcrumbs %}{% endblock %}
{% block content %} {% block content %}
{% if form.errors and not form.non_field_errors %} {% if form.errors and not form.non_field_errors %}
......
...@@ -99,6 +99,8 @@ TEMPLATES = [ ...@@ -99,6 +99,8 @@ TEMPLATES = [
WSGI_APPLICATION = 'AKPlanning.wsgi.application' WSGI_APPLICATION = 'AKPlanning.wsgi.application'
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
# Database # Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases # https://docs.djangoproject.com/en/2.2/ref/settings/#databases
......
/*
Load both the django admin base style and bootstrap -- but make sure bootstrap is loaded first to override all critical theme settings from bootstrap with the default admin style.
This especially fixes the dark theme.
*/
@import "/static/common/css/bootstrap.css";
@import "../../admin/css/base.css";
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
{% load fontawesome_5 %} {% load fontawesome_5 %}
{% load static %} {% load static %}
{% block stylesheet %}{% static "common/css/admin-bootstrap.css" %}{% endblock %}
{% block extrastyle %} {% block extrastyle %}
{% if not debug %} {% if not debug %}
<link rel="stylesheet" type="text/css" href="{% static "common/css/admin-color.css" %}"/> <link rel="stylesheet" type="text/css" href="{% static "common/css/admin-color.css" %}"/>
...@@ -12,7 +14,6 @@ ...@@ -12,7 +14,6 @@
{% block extrahead %} {% block extrahead %}
<!-- Load bootstrap, jquery and fontawesome--> <!-- Load bootstrap, jquery and fontawesome-->
{% bootstrap_css %}
{% bootstrap_javascript jquery=True %} {% bootstrap_javascript jquery=True %}
{% fontawesome_5_static %} {% fontawesome_5_static %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment