I am trying to generate unique HASH values for my Django models of 10 digit i have tried these methods but i am getting this error
return Database.Cursor.ex
_createHash() is called when you define the model, so you have the same default every time you create a new object.
_createHash()
You can look at creating the hash in the save() method of the model, that's probably the easiest.
save()