Tuesday, October 4, 2011

Re: howto disable label for field in admin app form?

Add this https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates with that
https://docs.djangoproject.com/en/dev/topics/forms/#looping-over-the-form-s-fields


BILLION Sébastien

the Answer to the ultimate question of life, the universe and everything is 42

http://www.sebastienbillion.com/

Le 04/10/2011 14:25, Aljoša Mohorović a écrit :
On Tue, Oct 4, 2011 at 2:20 PM, Иван Иванов <wankata@openintegra.com> wrote: 
You can loop through the fields of the form and show only those parts of the field, you need:  https://docs.djangoproject.com/en/dev/topics/forms/#looping-over-the-form-s-fields 
 not exactly what i'm looking for although it works ok for frontend but my issue is related to admin form. i can control rendering of form fields but not label, currently the easiest way seems to be just adding javascript to remove label from rendered html.  Aljosa  

No comments:

Post a Comment