def __init__(self, *args, **kwargs):
    super(Form, self).__init__(*args, **kwargs)
for index in range(int(nb_dogs)):
    self.fields.update({('dog_%s_name' % index): forms.CharField(label=_(
        'Name'), required=False, max_length=512)})
dynamically add field to a form