Skip to content

Commit

Permalink
getting organizers
Browse files Browse the repository at this point in the history
  • Loading branch information
petrceska committed Oct 4, 2023
1 parent ce349cb commit 33430d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
2 changes: 1 addition & 1 deletion fiesta/apps/events/forms/event.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
20 changes: 6 additions & 14 deletions fiesta/apps/events/templates/events/event_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,15 @@ <h1>{{ event.title }}</h1>
</a>

<br><br>
{% get_ocs as organizers event %}
{% for organizer in organizers %}
{{ organizer }}<br>
{{ organizer.user }}<br>
{{ organizer.user.get_full_name }}<br>
{# endfor #}
<br><br>

<!--TODO use the typical table-->
{% 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 }}<br>
{% for organizer in organizers %}
{{ organizer }}<br>
{{ organizer.user }}<br>
{{ organizer.user.get_full_name }}<br>
{% endfor %}
{% endif %}
<br><br>

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

0 comments on commit 33430d3

Please sign in to comment.