1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-07-06 06:03:54 +02:00

Translate users models

This commit is contained in:
Alexandre Iooss
2019-08-10 16:13:32 +02:00
parent f61d09b65e
commit 2ce5e122a4
14 changed files with 309 additions and 20 deletions

View File

@ -49,7 +49,7 @@ def adherer(request, userid):
except User.DoesNotExist:
messages.error(request, "Utilisateur inexistant")
return redirect("admin:users_user_changelist")
adh_year = Adhesion.objects.all().order_by('annee_debut').reverse().first()
adh_year = Adhesion.objects.all().order_by('starting_in').reverse().first()
if not adh_year:
messages.error(request, "Année d'adhésion non définie")
return redirect("admin:users_user_changelist")