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 functionality with queryset modifiers
- Loading branch information
1 parent
9898d16
commit de50d3e
Showing
3 changed files
with
57 additions
and
10 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
22 changes: 22 additions & 0 deletions
22
admin_tools_stats/migrations/0022_dashboardstats_queryset_modifiers.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,22 @@ | ||
# Generated by Django 4.2.3 on 2023-10-12 11:26 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("admin_tools_stats", "0021_auto_20230210_1102"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="dashboardstats", | ||
name="queryset_modifiers", | ||
field=models.JSONField( | ||
blank=True, | ||
help_text="Additional queryset modifiers in JSON format, ex. <code>[{'filter': {'status': 'active'}}, {'exclude': {'status': 'deleted'}}]</code>.<br>Ensure the format is a valid JSON array of objects.", | ||
null=True, | ||
verbose_name="Queryset modifiers", | ||
), | ||
), | ||
] |
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