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
Branches
No related tags found
No related merge requests found
from bootstrap_datepicker_plus import DateTimePickerInput
from django import forms
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
......
This diff is collapsed.
{% extends "admin/base_site.html" %}
{% extends "admin/login.html" %}
{% 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 %}
{% if form.errors and not form.non_field_errors %}
......
......@@ -99,6 +99,8 @@ TEMPLATES = [
WSGI_APPLICATION = 'AKPlanning.wsgi.application'
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
# Database
# 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 @@
{% load fontawesome_5 %}
{% load static %}
{% block stylesheet %}{% static "common/css/admin-bootstrap.css" %}{% endblock %}
{% block extrastyle %}
{% if not debug %}
<link rel="stylesheet" type="text/css" href="{% static "common/css/admin-color.css" %}"/>
......@@ -12,7 +14,6 @@
{% block extrahead %}
<!-- Load bootstrap, jquery and fontawesome-->
{% bootstrap_css %}
{% bootstrap_javascript jquery=True %}
{% fontawesome_5_static %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment