1👍
Solved myself.
The above error gets fixed by commenting the following code in forms.py :
def is_valid(self):
form = super(ProfileForm, self).is_valid()
for f, error in self.errors.iteritems():
if f != '__all__':
self.fields[f].widget.attrs.update({'class': 'error', 'value': removetags(error, 'ul li')})
return form
thank you all for help.
Source:stackexchange.com