On Tuesday 14 May 2013, Alex Ogier wrote:
> 
>  It's a totally new behavior that has
> plenty of corner cases such as foreign keys, and especially OneToOneFields.
> 
Another one is initializers: get() or any other method of fetching an object 
from the database will call __init__() with the fields as *args; this allows a 
model to manipulate these fields or calculate derived fields or whatever. 
refresh() may put such objects in an inconsistent state by default -- to 
prevent this, we would need a rule along the lines of "every model that 
overrides __init__() also needs to override refresh()".

Shai.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-developers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to