Complete primitive backend

This commit is contained in:
Alexander Laevens
2022-11-22 16:16:34 -07:00
commit 35fc396050
29 changed files with 840 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
from django.contrib.auth.models import AbstractUser
from django.db import models
from api.models import Homegroup
class User(AbstractUser):
homegroup = models.ForeignKey(Homegroup, related_name="users", on_delete=models.SET_NULL, blank=True, null=True)