8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

premiere instance preference ticket

This commit is contained in:
Grizzly 2019-08-19 19:38:32 +00:00
parent 9185b121af
commit 241c438f05

View file

@ -179,7 +179,7 @@ def profil(request,user):
def preferences(request):
""" View to display the settings of the tickets in the preferences page"""
pref = Preferences.objects.first()
pref, created = Preferences.objects.get_or_create(id=1)
context = {'preferences':pref,'language':str(pref.LANGUES[pref.mail_language][1])}
return render_to_string('tickets/preferences.html', context=context, request=request, using=None)