Added AttributeForm to elegantly handle all the fields that should be displayed in...
authorStephen Burrows <stephen.r.burrows@gmail.com>
Tue, 12 Oct 2010 16:30:34 +0000 (12:30 -0400)
committerStephen Burrows <stephen.r.burrows@gmail.com>
Tue, 12 Oct 2010 16:34:31 +0000 (12:34 -0400)
commitd7d4d16a3aaf6d572e86c78b45d93b8bb065d23d
treefc7abc1a45ecb2f5c2338c91fdb9ead9b25ef941
parent74ceac458ad030558f2e564ba34191115d0aadc5
Added AttributeForm to elegantly handle all the fields that should be displayed in the admin related to the instance's value. Tweaked the tabular_collapse template (which was only used for attributes) to display the extra fields. Added the "value_formfield" method to Attribute Value models to allow for the possible future addition of value types.
admin/base.py
forms.py
models/base.py
templates/admin/philo/edit_inline/tabular_attribute.html [moved from templates/admin/philo/edit_inline/tabular_collapse.html with 97% similarity]