예제 #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])
예제 #2
0
파일: admin.py 프로젝트: cnu/junction
 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])
예제 #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])
예제 #4
0
파일: admin.py 프로젝트: Parbhat/junction
 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])
예제 #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])