Some weird bug only occuring when testing

This commit is contained in:
reverend 2021-06-12 17:05:54 +02:00
parent cc9343270a
commit 29d2813fcc
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
</ul>
</div>
<form id="id_tag_submit_form" class="LP-Form LP-Form--inline LP-Form--tagging" method="POST" action="{% url config.submit_url_name tagged_id=config.tagged_item.id%}">
<form id="id_tag_submit_form" class="LP-Form LP-Form--inline LP-Form--tagging" method="POST" action="{{config.submit_url}}">
<fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">{% translate 'Add tags' %}</legend>
{% csrf_token %}

View File

@ -50,7 +50,7 @@ class PlaceDetailView(IsAuthenticatedMixin, View):
'all_tags': Tag.objects.all(),
'submit_form': TagSubmitForm(),
'tagged_item': place,
'submit_url_name': 'place_tag_submit',
'submit_url': reverse('place_tag_submit', kwargs={'tagged_id': place.id}),
'delete_url_name': 'place_tag_delete'
}
}