aboutsummaryrefslogtreecommitdiff
path: root/rrd/migrations/0002_alter_dashboard_groups_read_and_more.py
blob: bc1c863be385fae29b380c4b61c1b6c856b300b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Generated by Django 4.2.9 on 2024-01-27 10:24

from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ("auth", "0012_alter_user_first_name_max_length"),
        ("rrd", "0001_initial"),
    ]

    operations = [
        migrations.AlterField(
            model_name="dashboard",
            name="groups_read",
            field=models.ManyToManyField(
                related_name="%(class)s_read", to="auth.group"
            ),
        ),
        migrations.AlterField(
            model_name="dashboard",
            name="groups_write",
            field=models.ManyToManyField(
                related_name="%(class)s_write", to="auth.group"
            ),
        ),
        migrations.AlterField(
            model_name="dashboard",
            name="users_read",
            field=models.ManyToManyField(
                related_name="%(class)s_read", to=settings.AUTH_USER_MODEL
            ),
        ),
        migrations.AlterField(
            model_name="dashboard",
            name="users_write",
            field=models.ManyToManyField(
                related_name="%(class)s_write", to=settings.AUTH_USER_MODEL
            ),
        ),
        migrations.AlterField(
            model_name="datasource",
            name="groups_read",
            field=models.ManyToManyField(
                related_name="%(class)s_read", to="auth.group"
            ),
        ),
        migrations.AlterField(
            model_name="datasource",
            name="groups_write",
            field=models.ManyToManyField(
                related_name="%(class)s_write", to="auth.group"
            ),
        ),
        migrations.AlterField(
            model_name="datasource",
            name="path",
            field=models.CharField(max_length=512),
        ),
        migrations.AlterField(
            model_name="datasource",
            name="rrd_config",
            field=models.TextField(
                default="\nDS:{ds_name}:GAUGE:600:U:U\nRRA:AVERAGE:0.5:1:2016\nRRA:AVERAGE:0.5:12:720\nRRA:MAX:0.5:288:365\nRRA:MIN:0.5:288:365\n"
            ),
        ),
        migrations.AlterField(
            model_name="datasource",
            name="users_read",
            field=models.ManyToManyField(
                related_name="%(class)s_read", to=settings.AUTH_USER_MODEL
            ),
        ),
        migrations.AlterField(
            model_name="datasource",
            name="users_write",
            field=models.ManyToManyField(
                related_name="%(class)s_write", to=settings.AUTH_USER_MODEL
            ),
        ),
        migrations.AlterField(
            model_name="graph",
            name="groups_read",
            field=models.ManyToManyField(
                related_name="%(class)s_read", to="auth.group"
            ),
        ),
        migrations.AlterField(
            model_name="graph",
            name="groups_write",
            field=models.ManyToManyField(
                related_name="%(class)s_write", to="auth.group"
            ),
        ),
        migrations.AlterField(
            model_name="graph",
            name="path",
            field=models.CharField(max_length=512),
        ),
        migrations.AlterField(
            model_name="graph",
            name="rrd_config",
            field=models.TextField(
                default="\n--imgformat\n  PNG\n--width\n  800\n--height\n  200\n--start\n  -86400\n--end\n  -1\n--vertical-label\n  {ds_names[0]}\n--title\n  {title}\n--right-axis\n  1:0\n--alt-autoscale\nDEF:{ds_names[0]}={ds_paths[0]}:{ds_names[0]}:AVERAGE\nVDEF:max={ds_names[0]},MAXIMUM\nVDEF:min={ds_names[0]},MINIMUM\nLINE2:{ds_names[0]}#0000FF\nLINE1:max#FF0000\nLINE1:min#FF0000\n"
            ),
        ),
        migrations.AlterField(
            model_name="graph",
            name="users_read",
            field=models.ManyToManyField(
                related_name="%(class)s_read", to=settings.AUTH_USER_MODEL
            ),
        ),
        migrations.AlterField(
            model_name="graph",
            name="users_write",
            field=models.ManyToManyField(
                related_name="%(class)s_write", to=settings.AUTH_USER_MODEL
            ),
        ),
    ]