Beispiel #1
0
 def get_queryset(self, request):
     qs = super(ScheduleItemChoiceFeedbackAdmin, self).get_queryset(request)
     if request.user.is_superuser:
         return qs
     moderators = service.list_conference_moderator(user=request.user)
     return qs.filter(
         question__conference__in=[m.conference for m in moderators])
Beispiel #2
0
 def get_queryset(self, request):
     qs = super(ProposalSectionReviewerVoteAdmin, self).get_queryset(request)
     if request.user.is_superuser:
         return qs
     moderators = service.list_conference_moderator(user=request.user)
     return qs.filter(proposal__conference__in=[m.conference
                                                for m in moderators])
Beispiel #3
0
 def get_queryset(self, request):
     qs = super(ProposalVoteAdmin, self).get_queryset(request)
     if request.user.is_superuser:
         return qs
     moderators = service.list_conference_moderator(user=request.user)
     return qs.filter(
         proposal__conference__in=[m.conference for m in moderators])
Beispiel #4
0
 def get_queryset(self, request):
     qs = super(SchduleItemAdmin, self).get_queryset(
         request)
     if request.user.is_superuser:
         return qs
     moderators = service.list_conference_moderator(user=request.user)
     return qs.filter(conference__in=[m.conference for m in moderators])
Beispiel #5
0
 def get_queryset(self, request):
     qs = super(TextFeedbackQuestionAdmin, self).get_queryset(request)
     if request.user.is_superuser:
         return qs
     moderators = service.list_conference_moderator(user=request.user)
     return qs.filter(conference__in=[m.conference for m in moderators])