djangosnippets.org: Latest snippets tagged with 'ModelForm'http://djangosnippets.org/tags/modelform_1/2012-01-18T10:29:30.035716-06:00Add attrs automaticlly through ModelForm field max_length
2012-01-18T10:29:30.035716-06:00lettoohttp://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 redistributableEmbedded inline formsets in ModelForm
2010-11-04T05:57:20.360832-05:00stanhttp://djangosnippets.org/snippets/2248/<p>Add to ModelForm the ability to declare inline formsets.</p>
<p>Check the docstring for an in-depth example.</p>
Freely redistributable