Commits

kelvan committed a9cb6f1

insert css classes for error and required in newexpert model

Comments (0)

Files changed (2)

freieit/forms/expert.py

 class ExpertProfileForm(ModelForm):
     email = forms.EmailField(max_length=30)
     terms = forms.BooleanField()
+    error_css_class = 'error'
+    required_css_class = 'required'
 
     class Meta:
         model = ExpertProfile

freieit/views/newexpert.py

             #if 'image' in request.FILES:
             #    img = request.FILES['image']
             #    email.attach(img.name, img.read(), img.content_type)
-            
+
             email.send(fail_silently=False)
 
             return render(request, 'newexpert.html', {'expert': expert})
     else:
         form = ExpertProfileForm()
-        
+
     return render(request, 'newexpert.html', {'form': form})