Sunday, September 20, 2020

Re: django.db.models.signals

Hi
pre_save, post_save solved this problem with created flag [1]

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


El sáb., 19 sept. 2020 a las 12:14, Mohammad hassan Tahery (<mo.ha.ta.1.2.1.mo.ha.ta@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+unsubscribe@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+unsubscribe@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.

No comments:

Post a Comment