Skip to content
This repository has been archived by the owner on Oct 13, 2018. It is now read-only.

AtributeError exception on add,change or delete actions in Django 1.4 #18

Closed
chrisdev opened this issue May 16, 2012 · 1 comment
Closed

Comments

@chrisdev
Copy link
Contributor

Django 1.4 removed the message_set related manager from
the User model and also the message_set.create() method which was
being used to create the success messages. My suggestion to ensure compatibility with earlier versions of Django is to use a try block to trap the AttributeError exception that could be raised when message_set.create() is used.
If this exception is raised then the messages framework to create the success message

chrisdev added a commit to chrisdev/django-frontendadmin that referenced this issue May 18, 2012
…te actions when used with Django 1.4

The problem was caused by the removal of the Messaage model and its related model  from the djano.contrib.auth
in Django 1.4. This fix uses the message framework but is backwards compatible with earlier versions
bartTC added a commit that referenced this issue May 20, 2012
Fix for issue #18  AtributeError exception on add,change or delete actions in Django 1.4
@bartTC
Copy link
Owner

bartTC commented May 20, 2012

Fixed in ce31da8

@bartTC bartTC closed this as completed May 20, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants