equal
deleted
inserted
replaced
245 try: |
245 try: |
246 event = Event.objects.get(key__iexact=event_key) |
246 event = Event.objects.get(key__iexact=event_key) |
247 except Event.DoesNotExist: |
247 except Event.DoesNotExist: |
248 return redirect("/reg") |
248 return redirect("/reg") |
249 |
249 |
250 is_org = True if user in event.organizers.all() else False |
250 can_do_this = True if user in event.organizers.all() and user.is_staff else False |
251 |
251 |
252 if is_org and event.feedback_status == '0': |
252 if can_do_this and event.feedback_status == '0': |
253 #days = event.stop_date.day() - event.start_date.day() + 1 |
253 #days = event.stop_date.day() - event.start_date.day() + 1 |
254 days = 2 |
254 days = 2 |
255 if request.method == "POST": |
255 if request.method == "POST": |
256 day = request.POST['day'] |
256 day = request.POST['day'] |
257 event.feedback_status = day |
257 event.feedback_status = day |