[Answered ]-How to save model in Django with unique but null fields

1👍

I think that the problem is that you actually sending empty string, not null. You have to explicitly set phone number to None, before saving. Actually you can check if it is truth. Just make if phone_number == "": print something

Leave a comment