diff --git a/apps/tbde/models.py b/apps/tbde/models.py index 1fdbc64..15369b3 100644 --- a/apps/tbde/models.py +++ b/apps/tbde/models.py @@ -12,6 +12,8 @@ class Ticket(models.Model): note = models.CharField( max_length=255, + blank=True, + null=True, verbose_name=_("note") ) diff --git a/apps/tbde/views.py b/apps/tbde/views.py index b749b6b..3864f07 100644 --- a/apps/tbde/views.py +++ b/apps/tbde/views.py @@ -5,3 +5,10 @@ from django.views.generic import TemplateView class TombolaView(TemplateView): template_name = "tombola.html" + + def get_context_data(self, **kwargs): + context = super().get_context_data() + + context['title'] = "Tombola Saper[list]popette" + + return context diff --git a/templates/base.html b/templates/base.html index 9d71463..a6be725 100644 --- a/templates/base.html +++ b/templates/base.html @@ -90,7 +90,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
- NoteKfet2020 — + Tombola Saper[list]popette — Nous contacter diff --git a/templates/tombola.html b/templates/tombola.html index 621dc7c..389ed3e 100644 --- a/templates/tombola.html +++ b/templates/tombola.html @@ -2,10 +2,34 @@ {% load i18n static %} -{# Remove page title #} -{% block contenttitle %}{% endblock %} +{% block extracss %} + +{% endblock %} {% block content %} {% endblock %} +{% block extrajavascript %} + +{% endblock %}