/usr/lib/python2.7/dist-packages/graphite/dashboard/models.py is in graphite-web 0.9.12+debian-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | from django.db import models
from django.contrib.auth import models as auth_models
from graphite.account.models import Profile
class Dashboard(models.Model):
class Admin: pass
name = models.CharField(primary_key=True, max_length=128)
owners = models.ManyToManyField(Profile, related_name='dashboards')
state = models.TextField()
__str__ = lambda self: "Dashboard [%s]" % self.name
|