Skip to content

Commit d86ac0c

Browse files
authored
Merge pull request #13 from WoopyOnOff/development
Petits ajouts suite pull en prod
2 parents 25a951c + 5a353c3 commit d86ac0c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bourse/templates/bourse/admin_manage_lists.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ <h2>Les listes des utilisateurs</h2>
3030
<td>{{ list.user.username }}</td>
3131
<td>
3232
{{ list.status_desc }}
33-
{% if list.list_status == 2 or list.list_status == 3 %} (<a href="{% url 'bourse:admin-list-validate' list.event.pk list.pk %}">Modifier</a>)
34-
{% endif %}
33+
(<a href="{% url 'bourse:admin-list-validate' list.event.pk list.pk %}">{% if list.list_status == 2 or list.list_status == 3 %}Modifier{% else %}Visualiser{% endif %}</a>)
3534
</td>
3635
<td align="right">{{ list.nb_items }}</td>
3736
<td align="right">{{ list.nb_sold }}</td>

bourse/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def OrderDetailPdfGen(request,event_id,order_id,*args):
457457
class OrdersListView(UserPassesTestMixin,generic.ListView):
458458
model = Order
459459
template_name = 'bourse/admin_orders_list.html'
460-
paginate_by = 5
460+
paginate_by = 20
461461
def test_func(self):
462462
return self.request.user.is_staff
463463
def get_queryset(self):

0 commit comments

Comments
 (0)