I have a group of fields (date_start, date_end, all_day) that I would like to reuse in several models. I've defined a MultiWidget that displays two split datetime fields plus a checkbox (for the all_day toggle). However, I'm not sure how to get the MultiWidget to set the value of these three fields in the model. If I understand correctly, a MultiWidget can only set the value of a single model field. Hence, I would need to create some sort of field (e.g. "combined_date_info") that MultiWidget saves the serialized data from these three form fields. Once I have done this, then I would use model.save() to deserialize the data in the combined_date_info field and save it to the appropriate model fields.
This solution seems a bit hackish and not very DRY. Are there better approaches? Brad -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.