0
Work on a project in Python with Framework Django and recently we decided to change the generation of Ids integer to UUID on grounds of merge data before synchronization (we have data that comes from different databases and needs to be aggregated on a central basis). All our entities have been changed as per the example below (according to the documentation consulted)
class TestModel(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4(), editable=False, auto_created=True)
test_name = models.TextField("Test Name", blank=True)
test_surname = models.TextField("Test Surname", blank=True)
After this change it is only possible to enter data directly through the database and by admin is no longer possible although the message of success continues to be presented.