

def queryset(self, request):
    queryset = super(LifestreamAdmin, self).queryset(request)
    if (not request.user.is_superuser):
        queryset = queryset.filter(user=request.user)
    return queryset

dataset/ETHPy150Open IanLewis/django-lifestream/lifestream/admin.py LifestreamAdmin.queryset/original