Re: Displaying (only) custom form fields in a template.

2010-10-27 Thread ShawnMilo
I found a solution, but it's kind of ugly. In the form I added this: self.fields[field_name].is_custom = True And in the model: {% for field in form %} {% if field.field.is_custom %} {{ field.label }} {{ field }}

Displaying (only) custom form fields in a template.

2010-10-27 Thread Shawn Milochik
I'm using Django 1.1. I have a forms.Form that has fields in it, and I'm dynamically creating custom fields, each with a name beginning with 'custom_.' In my template I'm already displaying the non-custom fields. I need to be able to show just the custom fields. How do I iterate through only the