Django template label_suffix -
i trying extract label_suffix
in django template.
the term label_suffix
defined here in docs:
i have tried:
{{ field.label_suffix }} {{ field.label_tag.label_suffix }}
where field fields of django form class.
nothing seems work. there no error, doesn't print anything. there way extract suffix in template?
if {{ field.label_tag }}
prints form label suffix wanted extract suffix.
{{ field.label_tag|cut:field.label }}
Comments
Post a Comment