Primary Key as SmallIntegerField
|Reported by:||Bless||Owned by:||Adrian Holovaty|
|Component:||Database layer (models, ORM)||Version:||1.0|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I tried change the value of Primary Key in my model:
I tried also:
but both fail.
>>> p.save() >>> p.id '' >>>
So it isn't possible change the value of the Primary key, and its value is an integer.
I think that it's a value large for store a bit of registers.