Django Admin and object ID = 0

Viewed 26

Using django admin to manage records from a pre-existing external database, I face issues with objects having 0 as value for the model's id fields.

Each time i edit this object django creates a new one.

I understand that having 0 for an id is like having a null value and that django considers the object as a new one to be inserted in the model table.

is there a way to specify that 0 is a good id (even if not a good idea ...) ?

0 Answers
Related