Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make views.login compatible with django 1.4 by updating messaging #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ichuang
Copy link

@ichuang ichuang commented Jul 14, 2013

The Message model (in django.contrib.auth), its related manager in the User model (user.message_set), and the associated methods (user.message_set.create() and user.get_and_delete_messages()), which have been deprecated since the 1.2 release, have been removed from Django 1.4.

This PR updates the views.login call to use the messages framework instead of the Message model.

See https://docs.djangoproject.com/en/1.3/internals/deprecation/ and https://docs.djangoproject.com/en/1.3/ref/contrib/messages/

ichuang and others added 4 commits July 14, 2013 18:45
This fixes issues with Django 1.5. django.http.get_host() was replaced with request.get_host()
This fixes issues with Django 1.5. django.http.get_host()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants