views:

19

answers:

1

Django saves the data but eventually raises an IntegrityError. If there is an error, why it is saving that data? And I'm sure that the uniqueness property is not violated on that data.

What is going on? Why is that error occurs? and how can I solve that?

+1  A: 

Most likely your model has a field which doesn't allow null value and you are trying to add object without any value for that field.

If you can Edit your post and add more details (like model & traceback) then you can expect better response.

Srikanth Chundi