Friday, October 5, 2012

Re: object has no attribute '_state'


I'm sure the OP from June 2010 will be pleased that his question has
been answered so many times…
 
Eek, guess I should have read the posting date.
 
PS: To call the parent class(es) constuctor(s) correctly when using
python "new style" classes (ie: all Django classes and classes derived
from Django classes), you should use super(ClassName, self).__init__()
and not call the base class directly.

Call me paranoid: https://fuhm.net/super-harmful/ 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate