Re: How do you write a django model that can crunch numbers and automatically populate another field with results?
You can hook into the model signal so that when the model changes, you
do you calculation and change your models.
https://docs.djangoproject.com/en/dev/ref/signals/#django.db.models.signals.post_save
--
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 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