This commit is contained in:
ITQ
2024-04-03 00:08:07 +03:00
parent 2c7db1bf2a
commit 50a4a5eb58
15 changed files with 5 additions and 126 deletions
+1 -6
View File
@@ -1,7 +1,6 @@
from django.db import models
from api.core.models import BaseModel
from api.tree.models import Tree
class Event(BaseModel):
@@ -51,11 +50,7 @@ class Event(BaseModel):
default="everyone",
)
tree = models.ForeignKey(
Tree,
on_delete=models.CASCADE,
related_name="events",
)
tree = models.JSONField()
def __str__(self):
return self.title