[Answered ]-Django "Instance" Form Fields Not Rendering

2👍

Form.fields holds the fields themselves, what you want for rendering are the BounFields that you can get directly from the form itself, ie:

def iter_email(self):
    for k in sorted(self.fields.keys()):
        if k.startswith('email_'):
            yield self[k]

Leave a comment