From 83b6a697e7b5a8f36ccd20e136f5500eb7b23ce1 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 13 Oct 2020 19:02:42 +0100 Subject: minor fixes --- ctrack/caf/templates/caf/applicable_system_create_from_caf.html | 2 +- ctrack/register/models.py | 2 +- ctrack/register/templates/single_datetime_event_create.html | 3 --- ctrack/register/views.py | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) (limited to 'ctrack') diff --git a/ctrack/caf/templates/caf/applicable_system_create_from_caf.html b/ctrack/caf/templates/caf/applicable_system_create_from_caf.html index 0c39fb6..2b2d6b1 100644 --- a/ctrack/caf/templates/caf/applicable_system_create_from_caf.html +++ b/ctrack/caf/templates/caf/applicable_system_create_from_caf.html @@ -13,7 +13,7 @@

Add a new system to {{ caf }}

-
+
{% crispy form %}
diff --git a/ctrack/register/models.py b/ctrack/register/models.py index 005ccad..2729fa5 100644 --- a/ctrack/register/models.py +++ b/ctrack/register/models.py @@ -94,7 +94,7 @@ class ThirdPartyEventMixin(models.Model): class SingleDateTimeEventMixin(models.Model): - datetime = models.DateTimeField(blank=False, verbose_name="Date/Time") + datetime = models.DateTimeField(blank=False, verbose_name="Date/Time", help_text="DD/MM/YY HH:MM format please!") class Meta: abstract = True diff --git a/ctrack/register/templates/single_datetime_event_create.html b/ctrack/register/templates/single_datetime_event_create.html index c4ec263..3494792 100644 --- a/ctrack/register/templates/single_datetime_event_create.html +++ b/ctrack/register/templates/single_datetime_event_create.html @@ -8,9 +8,6 @@ {% endblock %} - - - {% block content %}
diff --git a/ctrack/register/views.py b/ctrack/register/views.py index a7a6c26..9ec96e8 100644 --- a/ctrack/register/views.py +++ b/ctrack/register/views.py @@ -75,7 +75,7 @@ class EngagementEventCreateFromCaf(LoginRequiredMixin, FormView): class SingleDateTimeEventCreate(LoginRequiredMixin, FormView): template_name = "single_datetime_event_create.html" form_class = AddMeetingForm - success_url = "/" + success_url = reverse_lazy("organisations:list") def get_form_kwargs(self): kwargs = super().get_form_kwargs() -- cgit v1.2.3