2007/4/4, Aidas Bendoraitis <[EMAIL PROTECTED]>: > > You can have a pre_save signal for adding property > instance._is_new=True if the instance has no id. And then to delete > that property in the post_save signal after checking it.
Thanks for your answer, it's a bit complicated because I need to declare four signals for each models (ouch!) but it works :-). If someone had a more elegant solution... Regards, David --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---