1. Benoit Chesneau
  2. django-authopenid
  3. Issues
Issue #47 new

not_authenticated decorator needs improvement

Xinjiang Lü
created an issue

Issue: resolve("accounts/dissociate") doesn't return the correct view function.

The suggestion is to model @login_required by using auto_adapt_to_methods which is using a classed based decorator MethodDecoratorAdaptor ( in django.utils.decorators ). This way: {{{


f, a, v = resolve("accounts/dissociate")

now return the original view function wrapped by the decorator.

f.func }}}

Comments (0)

  1. Log in to comment