some improvement
This commit is contained in:
0
app/watch_party/__init__.py
Normal file
0
app/watch_party/__init__.py
Normal file
3
app/watch_party/admin.py
Normal file
3
app/watch_party/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
app/watch_party/apps.py
Normal file
6
app/watch_party/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class WatchPartyConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'watch_party'
|
||||
0
app/watch_party/migrations/__init__.py
Normal file
0
app/watch_party/migrations/__init__.py
Normal file
11
app/watch_party/models.py
Normal file
11
app/watch_party/models.py
Normal 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
app/watch_party/tests.py
Normal file
3
app/watch_party/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
app/watch_party/views.py
Normal file
3
app/watch_party/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user