latest changes
This commit is contained in:
@@ -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")]
|
||||
Reference in New Issue
Block a user