From 29d2813fcc6757fde3f95a65b7480fb9a6bdb78a Mon Sep 17 00:00:00 2001 From: reverend Date: Sat, 12 Jun 2021 17:05:54 +0200 Subject: [PATCH] Some weird bug only occuring when testing --- django_lostplaces/lostplaces/templates/partials/tagging.html | 2 +- django_lostplaces/lostplaces/views/place_views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django_lostplaces/lostplaces/templates/partials/tagging.html b/django_lostplaces/lostplaces/templates/partials/tagging.html index 66775fd..795663f 100644 --- a/django_lostplaces/lostplaces/templates/partials/tagging.html +++ b/django_lostplaces/lostplaces/templates/partials/tagging.html @@ -25,7 +25,7 @@ -
+
{% translate 'Add tags' %} {% csrf_token %} diff --git a/django_lostplaces/lostplaces/views/place_views.py b/django_lostplaces/lostplaces/views/place_views.py index 18c10a9..d391300 100644 --- a/django_lostplaces/lostplaces/views/place_views.py +++ b/django_lostplaces/lostplaces/views/place_views.py @@ -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' } }