Den 21/01/2014 kl. 10.55 skrev Johannes Schneider 
<johannes.schnei...@galileo-press.de>:

> yes, but the problem is that we manually give them a pk.
> 
> Maye it's the best to reduce the question to the following:
> Which (undocumented) field is better for this case?
> * instance._state.db (checking if this is None)
> * instance_state.adding (checking for True)

Pick whichever works for you. But make sure to write tests for this, so it 
still works when you upgrade Django.

Erik

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ADA379C6-E84C-492F-AFEE-7148CC9545A3%40cederstrand.dk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to