from django.contrib.auth.decorators import user_passes_test @user_passes_test(lambda u: u.is_superuser) def foo_view(request): ....
Post a Comment
No comments:
Post a Comment