forked from DGNum/gestioCOF
Update Py3 compat
This commit is contained in:
parent
aa6e5e5479
commit
210c6d7712
27 changed files with 155 additions and 95 deletions
10
bda/admin.py
10
bda/admin.py
|
@ -1,5 +1,7 @@
|
|||
# coding: utf-8
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import division
|
||||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.core.mail import send_mail
|
||||
|
@ -87,7 +89,7 @@ Le Bureau des Arts
|
|||
name = member.user.get_full_name()
|
||||
mail = mail % name
|
||||
else:
|
||||
mail = u"""Cher-e %s,
|
||||
mail = """Cher-e %s,
|
||||
|
||||
Tu t'es inscrit-e pour le tirage au sort du BdA. Tu as été sélectionné-e
|
||||
pour les spectacles suivants :
|
||||
|
@ -149,8 +151,8 @@ class AttributionAdminForm(forms.ModelForm):
|
|||
if participant and spectacle:
|
||||
if participant.tirage != spectacle.tirage:
|
||||
raise forms.ValidationError(
|
||||
u"Erreur : le participant et le spectacle n'appartiennent"
|
||||
u"pas au même tirage")
|
||||
"Erreur : le participant et le spectacle n'appartiennent"
|
||||
"pas au même tirage")
|
||||
return cleaned_data
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue