#494: Collapse in admin interface for inline related objects
-------------------------------------------+--------------------------------
Reporter: [email protected] | Owner: aptiko
Status: reopened | Milestone:
Component: django.contrib.admin | Version: SVN
Resolution: | Keywords: edit_inline,
nfa-someday
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 1
Needs_better_patch: 1 |
-------------------------------------------+--------------------------------
Comment (by schinckel):
Replying to [comment:52 Alex]:
> For the record (and I thought I'd left this comment before, but
apparently not) I'm opposed to formsets having some knowledge of
"classes", there's no precedent for it in the forms API, and it further
munges the output with the server side issues.
In hindsight, I think I agree. I'm not sure if I got that code from
someone else, and just updated it, but I was definitely following a
pattern of some sort.
Having said that, BoundField in django.forms.forms.py contains a method
css_classes, which looks for a property called extra_classes, which it
uses to add classes to a field element. Why could the same not apply to a
Form?
--
Ticket URL: <http://code.djangoproject.com/ticket/494#comment:56>
Django <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.