Error coming up when name field in Profile model already exists


#1

Hello,
There is an error coming up which is column slug is not unique whenver i try to create profile with a name that already exists in database.So how can I raise a ValidationError message that Name already exist .Just as Registation Redux does in registration form.
Thank you


#2

Can you paste your models.py into pastebin.com so I can check it out? :D


#3

http://pastebin.com/K4E05qPs
I’m really sorry for the late reply.this is it.
Thank you


#4

Ah got it — so this is happening in your admin when you try to add a Profile manually?


#5

Yes Yes.It happens there and it also happens at the site itself where there is a Create Profile form


#6

Are all your migrations applied? I wonder if there was an error with creating your local database where a migration wasn’t applied so you’re getting database errors.