1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-04 01:32:11 +02:00

Add vaccine sheet field, closes #18

This commit is contained in:
Emmy D'Anello
2023-02-20 00:38:57 +01:00
parent 0f2c44331c
commit 4075f6cf78
2 changed files with 11 additions and 4 deletions

View File

@ -19,7 +19,7 @@ class RegistrationTable(tables.Table):
)
def order_type(self, queryset, desc):
types = ["-volunteerregistration__admin", "volunteerregistration", "participantregistration"]
types = ["volunteerregistration", "-volunteerregistration__admin", "participantregistration"]
return queryset.order_by(*(("-" if desc else "") + t for t in types)), True
class Meta: