News for hackers. Stuff that matters.
Re:Django's Architecture: The Good, The Bad, and The Ugly by lojack on Sunday June 16, 2013 @12:20PM (#5888897)
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.

There are no comments on this comment yet.