Unique Constraints Failed

This error occurred when same user try to save something in database. I realised this error while I was working with modelform. Is there any solution to this challenge? I try to save directly from database the error return that a user with the same username already already exists

Yes, but we’ll need more detailed and specific information.

We’ll need to see the code for your view and may also need to see your model.

When posting code here, do not post images. Copy/paste the code directly into your post, between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This will force the forum software to keep your code properly formatted, which is critical with Python.

Ok thank. I will post the codes