mirror of
https://github.com/TrentSPalmer/trentpalmerdotorg.git
synced 2024-12-22 21:12:49 -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
|