Commits

Ian Lewis  committed 8cc170e

参加フォームを直した (-_-;)

  • Participants
  • Parent commits b4c7a58

Comments (0)

Files changed (1)

File eventstream/event/views.py

     """
     user_participation = get_object_or_None(Participation, user=request.account, event=event)
     # フォーム用 今の状態と逆
-    is_cancelled = not user_participation.is_cancelled if user_participation else True  
+    is_cancelled = not user_participation.is_cancelled if user_participation else False
     return direct_to_template(request, 'event/detail.html', {
         'participate_form': ParticipateForm(initial={'is_cancelled': is_cancelled}),
         'user_participation': user_participation,