Minor formatting changes.

This commit is contained in:
Marcus Scholz 2020-09-10 00:32:56 +02:00
parent 0c2b1a4699
commit 44b06d1c04
3 changed files with 3 additions and 3 deletions

View File

@ -57,4 +57,4 @@ class TagSubmitForm(forms.Form):
max_length=500,
required=False,
widget=forms.TextInput(attrs={'autocomplete':'off'})
)
)

View File

@ -26,7 +26,7 @@ urlpatterns = [
path('place/', PlaceListView.as_view(), name='place_list'),
path('flat/<slug:slug>/', FlatView, name='flatpage'),
# POST-only URL for tag submission
# POST-only URLs for tag submission
path('place/tag/<int:place_id>', PlaceTagSubmitView.as_view(), name='place_tag_submit'),
path('place/tag/delete/<int:tagged_id>/<int:tag_id>', PlaceTagDeleteView.as_view(), name='place_tag_delete')
]

View File

@ -95,4 +95,4 @@ class PlaceAssetDeleteView(IsAuthenticated, IsPlaceSubmitter, SingleObjectMixin,
place_id = self.get_object().place.id
self.get_object().delete()
messages.success(self.request, self.success_message)
return redirect(reverse_lazy('place_detail', kwargs={'pk': place_id}))
return redirect(reverse_lazy('place_detail', kwargs={'pk': place_id}))