Browse Source

premiere instance preference ticket

tickets
Grizzly 6 years ago
parent
commit
241c438f05
  1. 2
      tickets/views.py

2
tickets/views.py

@ -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…
Cancel
Save