Fix redirect to index
This commit is contained in:
parent
32b443cc81
commit
5d5dd4febd
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<ul>
|
<ul>
|
||||||
{% for event in events %}
|
{% for event in events %}
|
||||||
<li>{{ event.date }} {{ event.time_str }} (maximum {{ event.capacity }} mensen)
|
<li id="{{event.id}}">{{ event.date }} {{ event.time_str }} (maximum {{ event.capacity }} mensen)
|
||||||
<ul>
|
<ul>
|
||||||
<form action="{% url 'events:register' event.id %}" method="post">
|
<form action="{% url 'events:register' event.id %}" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
|
@ -29,4 +29,4 @@ def register(request, event_id):
|
||||||
# event=event,
|
# event=event,
|
||||||
# user=CustomUser.objects.get(),
|
# user=CustomUser.objects.get(),
|
||||||
# )
|
# )
|
||||||
return HttpResponseRedirect(reverse("events:index", args=(event.id,)))
|
return HttpResponseRedirect(reverse("events:index") + f"#{event.id}")
|
||||||
|
|
Loading…
Reference in a new issue