mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-11-16 15:11:30 -08:00
10 lines
199 B
Python
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
|