-
Josh Kelley authored
Replace get_site with a call to Django's get_current_site. Comparing get_site with Django's get_current_site shows that their implementations are identical (see [Django 1.4's version][1] or [Django 1.8's][2]). Django 1.9 moved form initialization to get_context_data, and get_context_data is called even if the Reset view returns invalid. To accommodate, I added code to initialize user in Reset.dispatch. This fixes issue #36. [1]: https://github.com/django/django/blob/stable/1.4.x/django/contrib/sites/models.py#L86 [2]: https://github.com/django/django/blob/stable/1.8.x/django/contrib/sites/shortcuts.py
3e279b81