from django.db.models import Q
from projects.models import Project, Story

class ProjectQuerySetMixin:
    def get_queryset(self):
        if self.request.user.is_superuser:
            return Project.objects.all()
        else:
            return Project.objects.filter(coordinator=self.request.user)


class StoryQuerySetMixin:
    def get_queryset(self, project_id=0):
        if self.request.user.is_superuser:
            print "apparently i am  super user!"
            stories = Story.objects.all()
        else:
            print "im not a super user!!!"
            stories = Story.objects.filter(Q(reporters__in=[self.request.user]) |
                                           Q(researchers__in=[self.request.user]) |
                                           Q(editors__in=[self.request.user]) |
                                           Q(copy_editors__in=[self.request.user]) |
                                           Q(fact_checkers__in=[self.request.user]) |
                                           Q(translators__in=[self.request.user]) |
                                           Q(artists__in=[self.request.user]) |
                                           Q(project__coordinator=self.request.user))

        if project_id > 0:
            stories.filter(project__id=project_id)

        return stories

@@ -424,143 +424,51 @@
     
-print %22apparently i am  super user!%22%0A            stories = Story.objects.all()%0A        else:%0A            print %22im not a super user!!!%22
+stories = Story.objects.all()%0A        else:
 %0A   

remove superfluous print statemetns