class UUIDProject(ShowFieldTypeAndContent, PolymorphicModel):
    uuid_primary_key = UUIDField(primary_key=True)
    topic = models.CharField(max_length=30)
class UUIDPlainA(models.Model):
    uuid_primary_key = UUIDField(primary_key=True)
    field1 = models.CharField(max_length=10)
Exemple #3
0
class UUIDModelA(ShowFieldTypeAndContent, PolymorphicModel):
    """UUID as primary key example"""
    uuid_primary_key = UUIDField(primary_key=True)
    field1 = models.CharField(max_length=10)