RE: how can i toggle django boolean field automatically
Hi Emma, Your question is kinda vague cos you didn't mention under what situation you want the field to be updated automatically. That said, I have a feeling you are interested in signals. Check the documentation for django's inbuilt signals feature. You can make your app listen for a signal and make it run a particular function (or update a model's field) immediately the signal has been received. Sent from my Windows Phone -Original Message- From: Okorie Emmanuel Sent: 1/10/2013 9:43 AM To: Django users Subject: how can i toggle django boolean field automatically hi am doing an app in which i intend to toggle the boolean field automatically based on certain requirements. Pls how i achieve this -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en. -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: how can i toggle django boolean field automatically
Model has ability to set default value to the field. https://docs.djangoproject.com/en/dev/ref/models/fields/#editable If you would like to set values on runtime please set those value in to form constructor. Many thanks, Serge +380 636150445 skype: skhohlov 2013/1/10 Okorie Emmanuel : > hi am doing an app in which i intend to toggle the boolean field > automatically based on certain requirements. Pls how i achieve this > > -- > 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+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
how can i toggle django boolean field automatically
hi am doing an app in which i intend to toggle the boolean field automatically based on certain requirements. Pls how i achieve this -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.