mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-07 02:16:26 +00:00
premiere instance preference ticket
This commit is contained in:
parent
9185b121af
commit
241c438f05
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue