Is there any particular reason that django.db.fields.SlugField doesn't
inherit from CharField? I've come up with 2 possible fixes for
prepopulated_fields in newforms-admin.

    1. copy the formfield method for CharField over to SlugField
         or
    2. make SlugField inherit from CharField

The formfield isn't being initialized correctly, so the newforms
CharField thinks its max_length is None. Option 2 seems much cleaner,
and obvious to me, so of course my initial reaction is that it doesn't
inherit for a reason. :) All tests pass with option 2.

Joseph

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to