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])
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])
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])
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])
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])