This could be a way to it, but we need this information while handling
the Pre_save singal. So this does not work too.
On 16.01.2014 17:53, Martin Marrese wrote:
On Thu, Jan 16, 2014 at 1:50 PM, Johannes Schneider
<[email protected]
<mailto:[email protected]>> 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.
bg,
Johannes
Perhaps get_or_create
(https://docs.djangoproject.com/en/dev/ref/models/querysets/#get-or-create)
?
Martín
--
Martin Marrese
[email protected] <mailto:[email protected]>
+54 911 5112 9448
--
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 [email protected].
To post to this group, send email to [email protected].
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/CAKQdVACvdMxrQERzB18dBDXPT4bDMXWOuV5NXpkE68eX-rfL9A%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Johannes Schneider
Webentwicklung
[email protected]
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 [email protected].
To post to this group, send email to [email protected].
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/52D8159A.5030105%40galileo-press.de.
For more options, visit https://groups.google.com/groups/opt_out.