I work on a Python with Django Framework project and recently decided to change the generation of the integer to UUID IDs for merge (we have data that comes from different bases and needs to be aggregated on a central basis). All of our entities have been changed according to 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 possible to insert data directly through the database and the admin is not possible although the message of success continues to be presented.