#5851: SplitDateTimeWidget (or MultiWidget) doesn't allow different attrs for
different fields
-----------------------------+----------------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody                         
  Status:  new               |   Component:  Core framework                 
 Version:  SVN               |    Keywords:  SplitDateTimeWidget MultiWidget
   Stage:  Unreviewed        |   Has_patch:  1                              
-----------------------------+----------------------------------------------
 Many times it is needed to have for instance different class attribute
 value for DateField than TimeField, therefore SplitDateTimeWidget should
 have a way to give different attrs for time and datefields.
 (e.g. Javascript helpers, one with contrib.admin is good example)

 There are two ways to fix the problem:
 1.) add the possiblity to MultiWidget and let SplitDateTimeWidget merely
 use the ability or,
 2.) add the possiblity to SplitDateTimeWidget

 First method is semantically a bit more correct, but requires more than
 few seconds of implementation (Currently I'm out of time and I can't spare
 to implement patch for first approach).

 Here is the patch for second approach (note that for the second approach
 leaving the multiwidget attrs as None was sufficient)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5851>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to