djangosnippets.org: Latest snippets tagged with 'Model'https://djangosnippets.org/tags/model_1/2012-01-18T10:29:30.035716-06:00Add attrs automaticlly through ModelForm field max_length
2012-01-18T10:29:30.035716-06:00lettoohttps://djangosnippets.org/snippets/2650/<ol>
<li>Define a subclass extends forms.ModelForm</li>
<li>Add the <strong>init</strong> method</li>
<li>Define your ModelForm extends this class</li>
<li>Define the CSS for "large","xlarge" and "xxlarge",or define yourself.</li>
</ol>
Freely redistributable