#4861: RegexField extends Field instead of CharField, duplicating much of the
logic
----------------------------------------------+-----------------------------
Reporter:  Collin Grady <[EMAIL PROTECTED]>  |       Owner:  adrian         
  Status:  new                                |   Component:  django.newforms
 Version:  SVN                                |    Keywords:                 
   Stage:  Unreviewed                         |   Has_patch:  1              
----------------------------------------------+-----------------------------
 Talking on IRC again, it came up that {{{RegexField}}} is a subclass of
 {{{Field}}} instead of {{{CharField}}}, and duplicates much of the logic,
 but not all of it, making it an incomplete mimic - specifically, it fails
 to define a {{{widget_attrs}}} method for setting the min/max length of
 the text input properly.
 
 With a few minor changes, {{{RegexField}}} can instead extend
 {{{CharField}}} and gets all the same validation for free, along with the
 {{{widget_attrs}}} method :)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4861>
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