diff --git a/eventplanner/models.py b/eventplanner/models.py index 10eed04..64b33c2 100644 --- a/eventplanner/models.py +++ b/eventplanner/models.py @@ -120,7 +120,8 @@ class Event ( models.Model ): class EventParticipation( models.Model ): OPTIONS = ( ('?' , _('?' )), ('Yes', _('Yes')), - ('No' , _('No' )) + ('No' , _('No' )), + ('-' , _( '-' )) ) event = models.ForeignKey( Event, verbose_name=_("event") ) @@ -149,8 +150,8 @@ class EventParticipation( models.Model ): futurePart = EventParticipation.objects.filter( event__date__gte = datetime.now() ) - maybeObjects = futurePart.filter( user = user ).filter( status = '?' ) - if len( maybeObjects ) > 0: + notYetEntered = futurePart.filter( user = user ).filter( status = '-' ) + if len( notYetEntered ) > 0: return False else: return True @@ -175,7 +176,7 @@ class EventParticipation( models.Model ): try: result = EventParticipation.objects.get( event = event, user = user ) except EventParticipation.DoesNotExist: - result = EventParticipation.objects.create( event = event, user = user, status='?', comment = '' ) + result = EventParticipation.objects.create( event = event, user = user, status='-', comment = '' ) return result diff --git a/eventplanner/templates/eventplanner/eventplanning_view.html b/eventplanner/templates/eventplanner/eventplanning_view.html index 7539ea6..ef07ef1 100644 --- a/eventplanner/templates/eventplanner/eventplanning_view.html +++ b/eventplanner/templates/eventplanner/eventplanning_view.html @@ -180,6 +180,15 @@