This may be better suited for django-users, as it's somewhat a usage question, but it's for DurationField, which is a proposed addition to Django itself, and its solution may (I don't know yet, just guessing) involve some slight code changes.
I'm planning to implement a SplitDurationField, based loosely on SplitDateTimeField, using MultiValueField as its base. However, when entering durations, it seems reasonable to allow users to enter just some of the values, whiel leaving others blank, with the blank values defaulting to 0 internally. I'd like to allow this option, while requiring that at least one of the fields be filled in, but I don't see a way to get MultiValueField to do so. So I see three possible outcomes: (1) I'm missing something, and you guys can help me out. (2) I should just leave it as is, and document the fact that unused values need a 0 explicitly entered. (3) I should investigate what code fixes might be necessary to facilitate this option. I did a bit of work on (3) and the rabbit hole goes far deeper than I'd like, so I'm hoping it's (1). If it's (2) though, that's okay too. -Gul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---