macropin / django-registration

Django-registration (redux) provides user registration functionality for Django websites.
http://django-registration-redux.readthedocs.org
Other
975 stars 350 forks source link

When using Jinja, request user is preferred over ctx_dict's user #365

Closed gone closed 4 years ago

gone commented 5 years ago

I'm seeing emails rendered with the request.user, which is still anonymous over the ctx_dict['user'] which is the new user. It looks to me like the request attributes are shadowing the context dictionary when they have a name collision?

joshblum commented 5 years ago

what version of the library and django are you using? Could you provide an example template where this happens?

macropin commented 4 years ago

Closing for now. Please feel free to reopen with more information.