forked from DGNum/gestioCOF
Pourquoi c'est pas commité avant ?
This commit is contained in:
parent
ef74c84095
commit
62797491cb
12 changed files with 233 additions and 38 deletions
|
@ -33,7 +33,7 @@ class BaseBdaFormSet(BaseInlineFormSet):
|
|||
raise forms.ValidationError("Vous ne pouvez pas vous inscrire deux fois pour le même spectacle.")
|
||||
spectacles.append(spectacle)
|
||||
|
||||
@buro_required
|
||||
@cof_required
|
||||
def etat_places(request):
|
||||
spectacles1 = ChoixSpectacle.objects.all().values('spectacle','spectacle__title').annotate(total = models.Count('spectacle'))
|
||||
spectacles2 = ChoixSpectacle.objects.filter(double = True).all().values('spectacle','spectacle__title').annotate(total = models.Count('spectacle'))
|
||||
|
@ -53,7 +53,7 @@ def etat_places(request):
|
|||
|
||||
@cof_required
|
||||
def inscription(request):
|
||||
if time.time() > 1349474400:
|
||||
if False and time.time() > 1349474400:
|
||||
return render(request, "error.html", {"error_title": "C'est fini !", "error_description": u"Tirage au sort le 6 octobre dans la soirée "})
|
||||
BdaFormSet = inlineformset_factory(Participant, ChoixSpectacle, fields = ("spectacle","double","autoquit","priority",), formset = BaseBdaFormSet)
|
||||
participant, created = Participant.objects.get_or_create(user = request.user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue