latest changes

This commit is contained in:
Joren de Graaf
2026-10-15 20:38:02 +02:00
parent 21f3cf09b7
commit 109ca6ef2a
45 changed files with 1463 additions and 22 deletions
+13
View File
@@ -0,0 +1,13 @@
from django.conf import settings
from django.db import models
class DashboardLayout(models.Model):
user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
page = models.SlugField(max_length=80)
revision = models.PositiveIntegerField(default=0)
widgets = models.JSONField(default=list)
updated_at = models.DateTimeField(auto_now=True)
class Meta:
constraints = [models.UniqueConstraint(fields=["user", "page"], name="unique_dashboard_user_page")]