From 33430d35d352f7d5b9c27367940d01ab00a1d1a9 Mon Sep 17 00:00:00 2001 From: petrceska Date: Wed, 4 Oct 2023 16:09:58 +0200 Subject: [PATCH] getting organizers --- fiesta/apps/events/forms/event.py | 2 +- .../events/templates/events/event_detail.html | 20 ++++++------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/fiesta/apps/events/forms/event.py b/fiesta/apps/events/forms/event.py index 5a8b6211..22423f28 100644 --- a/fiesta/apps/events/forms/event.py +++ b/fiesta/apps/events/forms/event.py @@ -1,6 +1,6 @@ from apps.fiestaforms.forms import BaseModelForm from apps.events.models import Event, Organizer -from django.forms import Field as FormField, modelform_factory, CharField, HiddenInput, ChoiceField, Fiel +from django.forms import Field as FormField, modelform_factory, CharField, HiddenInput, ChoiceField from django.utils.translation import gettext_lazy as _ class AddEventForm(BaseModelForm): diff --git a/fiesta/apps/events/templates/events/event_detail.html b/fiesta/apps/events/templates/events/event_detail.html index a8e46440..d35a18bb 100644 --- a/fiesta/apps/events/templates/events/event_detail.html +++ b/fiesta/apps/events/templates/events/event_detail.html @@ -25,23 +25,15 @@

{{ event.title }}



-{% get_ocs as organizers event %} - {% for organizer in organizers %} - {{ organizer }}
- {{ organizer.user }}
- {{ organizer.user.get_full_name }}
- {# endfor #} -

- - - {% show_participants event as participants %} +{% get_ocs event as organizers %} {% if participants is not None %} - {% for participant in participants %} - {{ participant.user.get_full_name }} - {{ participant.user.email }} - {{ participant.price }}
+ {% for organizer in organizers %} + {{ organizer }}
+ {{ organizer.user }}
+ {{ organizer.user.get_full_name }}
{% endfor %} {% endif %} +

{% get_price_variants event as prices %} {% if prices is not None %}