Created
January 15, 2011 18:43
-
-
Save lqc/781132 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@login_required | |
def personal_items(request, **kwargs): | |
qs = kwargs['queryset'] | |
qs = qs.filter(author=request.user) | |
# i inne filtry... | |
kwargs['queryset'] = qs | |
return django.views.generic.list_detail.object_list(request, **kwargs) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment