def updatelimits(self, vars):
    for i in range(0, len(vars)):
        self.fields[vars[i]['name']] = forms.BooleanField(label=vars[i]['name'], initial=False)
def updatelimits(self, vars):
    for i in range(0, len(vars)):
        self.fields[vars[i]['name']] = forms.BooleanField(label=vars[i]['name'], initial=False)