Removed german string, reodered comment.

This commit is contained in:
Marcus Scholz 2020-08-12 18:13:41 +02:00
parent aff5babb20
commit c39bbef47c
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<form class="LP-Form" method="POST"> <form class="LP-Form" method="POST">
<fieldset class="LP-Form__Fieldset"> <fieldset class="LP-Form__Fieldset">
<legend class="LP-Form__Legend">Place löschen</legend> <legend class="LP-Form__Legend">Delete place</legend>
{% csrf_token %} {% csrf_token %}
<div class="LP-Form__Composition LP-Form__Composition--breakable"> <div class="LP-Form__Composition LP-Form__Composition--breakable">
<p class="LP-Paragraph">Are you sure you want to delete "{{place.name}}"?</p> <p class="LP-Paragraph">Are you sure you want to delete "{{place.name}}"?</p>

View File

@ -107,9 +107,9 @@ class PlaceDeleteView(UserPassesTestMixin, DeleteView):
if self.request.user.is_superuser: if self.request.user.is_superuser:
return True return True
# Check if currently logged in user was the submitter
place_obj = self.get_object() place_obj = self.get_object()
# Check if currently logged in user was the submitter
if self.request.user == place_obj.submitted_by: if self.request.user == place_obj.submitted_by:
return True return True