Exemple #1
0
 def _participants_selector(user, contest):
     if is_contest_with_participants(contest):
         if user.is_anonymous():
             return False
         rcontroller = contest.controller.registration_controller()
         qs = User.objects.filter(id=user.id)
         return rcontroller.filter_participants(qs).exists()
     return True
Exemple #2
0
 def _participants_selector(user, contest):
     if is_contest_with_participants(contest):
         if user.is_anonymous():
             return False
         rcontroller = contest.controller.registration_controller()
         qs = User.objects.filter(id=user.id)
         return rcontroller.filter_participants(qs).exists()
     return True
def is_onsite_contest(request):
    rcontroller = request.contest.controller.registration_controller()
    return is_contest_with_participants(request.contest) \
        and issubclass(rcontroller.participant_admin,
            OIOnsiteRegistrationParticipantAdmin)
Exemple #4
0
def is_onsite_contest(request):
    rcontroller = request.contest.controller.registration_controller()
    return is_contest_with_participants(request.contest) \
        and issubclass(rcontroller.participant_admin,
            OIOnsiteRegistrationParticipantAdmin)