Tuesday, October 4, 2011

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

На Tue, 4 Oct 2011 14:05:37 +0200
Aljoša Mohorović <aljosa.mohorovic@gmail.com> написа:

> is it possible to disable rendering of label for field in forms?
> i would like to render a field in a custom form (admin add/edit form)
> w/o label. any info/tips appreciated
>
> Aljosa
>
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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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