Monday, October 1, 2012

formfield_overrides causes all fields in admin to use the last marx_length in a model definition.

I noticed this on several of my sites after adding formfield_overrides for Text fields in my admin.  I set the size of all the admin fields.

This caused all my fields to have the same length.  Coincidentally the length is always the max_length for the last field defined for that model in my models.py.

Is there a patch or a bug for this as I would expect "max_length" to be unaffected by setting the "size".

Yes, I know I can do it in CSS too, but its still sounds like a bug.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/v_Bc-3vH4XEJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment