Hello! I'm building my first website with Django and I've been stuck for 
the past two months with a problem I can't figure out.
My website has a form with three fields that allow the user to input his 
first name, last name and email.
In my "forms.py" file, I've declared "clean" methods for each field, that 
add the "error" class to them if they don't pass the validation.
In my CSS file, I declared a rule that applies the "background-color: 
lightcoral" to all elements with the class ".error".
The problem is that, when I fill in the "last name" field with invalid 
data, the "first name" field gets marked as invalid too.
I've tried everything I could think of, and nothing has worked. It's 
driving me crazy!! Has anyone ever seen something like this?

Pleas help!!!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/27559637-bab0-4d96-80f8-dd2a565fccd8n%40googlegroups.com.

Reply via email to