Created
September 8, 2009 03:03
-
-
Save plasticine/182691 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
from django.conf import settings | |
from django.contrib.auth.decorators import user_passes_test | |
@user_passes_test(lambda u: u.has_perm('foo.bar'), login_url=settings.LOGIN_URL) | |
def widgetize(request): | |
""" Clever, clever, clever... """ | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment