Thursday, August 25, 2011

Re: Update the parent model when a related (inline) model changed?

The advantage of using post_save or overriding save() is that it is immediate: if you then return a representation of the parent model, it will be up-to-date.

If you use django-celery (or similar) it may take some time to update.

Of course, the disadvantages is that your request has to wait for the update of the parent model to finish before it returns a response.

Matt.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/yeQ4Xckyb1sJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate