Re: django.db.models.signals

2020-09-20 Thread Ricardo Daniel Quiroga
Hi
pre_save, post_save solved this problem with created flag [1]

# If you check only update in you
if not created:
   pass

[1] https://docs.djangoproject.com/en/dev/ref/signals/#post-save



El sáb., 19 sept. 2020 a las 12:14, Mohammad hassan Tahery (<
mo.ha.ta.1.2.1.mo.ha...@gmail.com>) escribió:

> It would be cool to have pre_update and post_update in set of built-in
> signals.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/df4b7a32-4c81-4d37-aeca-bc12dfd79602n%40googlegroups.com
> 
> .
>


-- 

Ricardo Daniel Quiroga

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAO2-wHasnZPiXT2vENkZsOWoM9dUJXYcmBtD-6_21NLuDAM4aQ%40mail.gmail.com.


django.db.models.signals

2020-09-19 Thread Mohammad hassan Tahery
It would be cool to have pre_update and post_update in set of built-in 
signals.   

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/df4b7a32-4c81-4d37-aeca-bc12dfd79602n%40googlegroups.com.