trentpalmerdotorg/tp/models.py
2021-02-24 20:13:54 -08:00

10 lines
199 B
Python

from django.db import models
import uuid
class UUIDAsIDModel(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
class Meta:
abstract = True