SlugField not correctly autopopulated / has no max_length
|Reported by:||Owned by:||Adrian Holovaty|
|Severity:||Keywords:||newforms newforms-admin slugfield|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The SlugField returns a forms.CharField, but does not set the max_length attribute.
That means that in newforms-admin auto-population of the field doesn't work. As well as many other Bad Things.
I think that subclassing the CharField is the way to go here. If not, the alternative method (copy-paste bits out of the CharField class) is also a trivial patch.
Change History (7)
comment:1 Changed 10 years ago by
|Component:||Uncategorized → django.newforms|
|Owner:||changed from Jacob to Adrian Holovaty|
|Triage Stage:||Unreviewed → Accepted|