not_authenticated decorator needs improvement
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