No, just if you use auto generated PKs. Exactly this is the point. We use manually generated PKs, so can not use this check.

On 16.01.2014 18:03, Javier Guerra Giraldez wrote:
On Thu, Jan 16, 2014 at 11:50 AM, Johannes Schneider
<johannes.schnei...@galileo-press.de> wrote:
The point is, I have to distinguish between an instance which is created,
but its save method is not yet called. And an instance coming from the
database via a manager.


AFAIK, if it has a 'pk' property, it has been saved.



--
Johannes Schneider
Webentwicklung
johannes.schnei...@galileo-press.de
Tel.: +49.228.42150.xxx

Galileo Press GmbH
Rheinwerkallee 4 - 53227 Bonn - Germany
Tel.: +49.228.42.150.0 (Zentrale) .77 (Fax)
http://www.galileo-press.de/

Geschäftsführer: Tomas Wehren, Ralf Kaulisch, Rainer Kaltenecker
HRB 8363 Amtsgericht Bonn

--
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/52D8155C.8060307%40galileo-press.de.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to