djangosnippets.org: Latest snippets tagged with 'span'https://djangosnippets.org/tags/span/2009-02-24T17:30:17.224722-06:00Readonly fields on Form/Modelform
2009-02-24T17:30:17.224722-06:00Killarnyhttps://djangosnippets.org/snippets/1340/<p>A Form and ModelForm which provides the ability to specify certain fields as readonly, meaning that they will display their value as text wrapped with a <span> tag. The user is unable to edit them, and they are protected from POST data insertion attacks.</p>
<p>The recommended usage is to place …</p>
Freely redistributable