présentation plus user friendly

This commit is contained in:
Jean-Marie Favreau 2024-04-27 23:09:01 +02:00
parent 76d3bb78ba
commit 9eb53fbd26
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@
<a href="{% url 'edit_place' place.pk %}" role="button">Modifier {% picto_from_name "edit-3" %}</a>
<a href="{% url 'delete_place' place.pk %}" role="button">Supprimer {% picto_from_name "trash-2" %}</a>
</div>
<h2>Lieu #{{ place.pk }}&nbsp;: {{ place.name }}</h2>
<h2>{{ place.name }}</h2>
<ul>
<li><strong>Adresse&nbsp;:</strong> {{ place.address }}, {{ place.city }}</li>
<li><strong>Coordonnée GPS&nbsp;:</strong> {{ place.location }}</li>

View File

@ -1090,7 +1090,7 @@ class ModerationAnswerDeleteView(PermissionRequiredMixin, DeleteView):
class PlaceListView(ListView):
model = Place
paginate_by = 10
ordering = ['-pk']
ordering = ['name']
class PlaceDetailView(DetailView):
@ -1141,6 +1141,7 @@ class UnknownPlacesListView(PermissionRequiredMixin, ListView):
model = Event
permission_required = ("agenda_culturel.add_place")
paginate_by = 10
ordering = ['-pk']
template_name = 'agenda_culturel/place_unknown_list.html'
queryset = Event.objects.filter(exact_location__isnull=True)