|
|
|
|
|
by lojack
4751 days ago
|
|
Not 100% sure this is what mattchew was talking about, but instead of defining the form and then rendering the form field by doing something like this: > {{ form.thefield }} You would instead simply define the model and render the form field with something like this: > {{ model.thefield | render_input }} Or, if you had a regular Form (i.e. not a ModelForm) you would do something like this: > {{ render_input:name="field_name" }} And if you wanted validation or something, you'd need to create your own render_* methods to perform that validation. |
|