Skip to content
Snippets Groups Projects
Verified Commit b1401f76 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add dashboard widget model

Advances #173.
parent 2230914a
No related branches found
No related tags found
1 merge request!142Implement core functionality for dashboard widgets
......@@ -227,3 +227,17 @@ class Notification(models.Model):
class Meta:
verbose_name = _("Notification")
verbose_name_plural = _("Notifications")
class DashboardWidget(models.Model):
template = None
title = models.CharField(max_length=150, verbose_name=_("Widget Title"))
active = models.BooleanField(blank=True, verbose_name=_("Activate Widget"))
def __str__(self):
return self.title
class Meta:
verbose_name = _("Dashboard Widget")
verbose_name_plural = _("Dashboard Widgets")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment