Update to Django 4.2 (need to fix API)
This commit is contained in:
parent
b03bc3cca4
commit
8c57eb8096
5 changed files with 49 additions and 2 deletions
|
|
@ -2,7 +2,8 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.conf.urls import url, include
|
from django.conf.urls import include
|
||||||
|
from django.urls import re_path as url
|
||||||
from rest_framework import routers
|
from rest_framework import routers
|
||||||
|
|
||||||
from .views import UserInformationView
|
from .views import UserInformationView
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,36 @@
|
||||||
|
# Generated by Django 4.2.7 on 2023-11-07 13:06
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
("contenttypes", "0002_remove_content_type_name"),
|
||||||
|
("note", "0002_special_note"),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="note",
|
||||||
|
name="polymorphic_ctype",
|
||||||
|
field=models.ForeignKey(
|
||||||
|
editable=False,
|
||||||
|
null=True,
|
||||||
|
on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
related_name="polymorphic_%(app_label)s.%(class)s_set+",
|
||||||
|
to="contenttypes.contenttype",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="transaction",
|
||||||
|
name="polymorphic_ctype",
|
||||||
|
field=models.ForeignKey(
|
||||||
|
editable=False,
|
||||||
|
null=True,
|
||||||
|
on_delete=django.db.models.deletion.CASCADE,
|
||||||
|
related_name="polymorphic_%(app_label)s.%(class)s_set+",
|
||||||
|
to="contenttypes.contenttype",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
@ -9,7 +9,12 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
name="{{ widget.name }}"
|
name="{{ widget.name }}"
|
||||||
{# Other attributes are loaded #}
|
{# Other attributes are loaded #}
|
||||||
{% for name, value in widget.attrs.items %}
|
{% for name, value in widget.attrs.items %}
|
||||||
{% ifnotequal value False %}{{ name }}{% ifnotequal value True %}="{{ value|stringformat:'s' }}"{% endifnotequal %}{% endifnotequal %}
|
{% if value != False %}
|
||||||
|
{{ name }}
|
||||||
|
{% if value != True %}
|
||||||
|
="{{ value|stringformat:'s' }}"
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}>
|
{% endfor %}>
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<span class="input-group-text">€</span>
|
<span class="input-group-text">€</span>
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,8 @@ INSTALLED_APPS = [
|
||||||
# External apps
|
# External apps
|
||||||
'bootstrap_datepicker_plus',
|
'bootstrap_datepicker_plus',
|
||||||
'colorfield',
|
'colorfield',
|
||||||
|
'bootstrap4',
|
||||||
|
'crispy_bootstrap4',
|
||||||
'crispy_forms',
|
'crispy_forms',
|
||||||
'django_htcpcp_tea',
|
'django_htcpcp_tea',
|
||||||
'django_tables2',
|
'django_tables2',
|
||||||
|
|
@ -294,3 +296,5 @@ PHONENUMBER_DEFAULT_REGION = 'FR'
|
||||||
|
|
||||||
# We add custom information to CAS, in order to give a normalized name to other services
|
# We add custom information to CAS, in order to give a normalized name to other services
|
||||||
CAS_AUTH_CLASS = 'member.auth.CustomAuthUser'
|
CAS_AUTH_CLASS = 'member.auth.CustomAuthUser'
|
||||||
|
|
||||||
|
DEFAULT_AUTO_FIELD='django.db.models.AutoField'
|
||||||
|
|
|
||||||
|
|
@ -15,3 +15,4 @@ django-tables2
|
||||||
python-memcached
|
python-memcached
|
||||||
phonenumbers
|
phonenumbers
|
||||||
Pillow
|
Pillow
|
||||||
|
crispy_bootstrap4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue