Its quite simple to customize the admin template for a specific model
by creating a change_form.html in the templates/admin/<app_name>/
<model>/ directory.
But, is it possible to refer to particular fields in the model/form
directly?
E.g.
Instead of using the loops:
for fieldset in adminform:
for line in fieldset:
for field in line:
....
doing something like:
{{field.first_name.label}} {{ field.first_name.field}}<br/>
{{field.last_name.label}} {{ field.last_name.field}}<br/>
etc...
??
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---