some improvement

This commit is contained in:
2025-05-08 03:23:45 +02:00
parent 25fd30a0c3
commit b4330c0362
10 changed files with 29 additions and 2 deletions
View File
+3
View File
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
+6
View File
@@ -0,0 +1,6 @@
from django.apps import AppConfig
class WatchPartyConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'watch_party'
+11
View File
@@ -0,0 +1,11 @@
import uuid
from django.db import models
class Room(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4)
date_created = models.DateTimeField(auto_now_add=True)
created_by = models.ForeignKey("user.User", on_delete=models.CASCADE, related_name="rooms_created")
users = models.ManyToManyField("user.User", related_name="rooms")
all_admin = models.BooleanField(default=False)
+3
View File
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
+3
View File
@@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.