forked from areski/django-admin-tools-stats
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add permissions, add missing migration, check migrations, remove dupl…
…icate black check
- Loading branch information
1 parent
32d3253
commit 718a3fa
Showing
3 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
admin_tools_stats/migrations/0017_alter_dashboardstats_options_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Generated by Django 4.0.8 on 2022-11-02 22:17 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("admin_tools_stats", "0016_dashboardstats_cache_values"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="dashboardstats", | ||
options={ | ||
"permissions": (("view_dashboard_stats", "Can view dashboard charts"),), | ||
"verbose_name": "dashboard stats", | ||
"verbose_name_plural": "dashboard stats", | ||
}, | ||
), | ||
migrations.AlterField( | ||
model_name="cachedvalue", | ||
name="time_scale", | ||
field=models.CharField( | ||
choices=[ | ||
("hours", "Hours"), | ||
("days", "Days"), | ||
("weeks", "Weeks"), | ||
("months", "Months"), | ||
("quarters", "Quarters"), | ||
("years", "Years"), | ||
], | ||
default="days", | ||
max_length=90, | ||
verbose_name="Time scale", | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="dashboardstats", | ||
name="cache_values", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="If chart's values are cached, you will always get cached values, unless you pres reload/reload_all button", | ||
verbose_name="cache charts values", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters