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.
make choices_queryset not dependent on the time range and therefore m…
…uch quicker
- Loading branch information
1 parent
124f34d
commit d19c7cb
Showing
4 changed files
with
391 additions
and
275 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
32 changes: 32 additions & 0 deletions
32
admin_tools_stats/migrations/0023_alter_criteriatostatsm2m_choices_based_on_time_range.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,32 @@ | ||
# Generated by Django 5.0.7 on 2024-08-02 15:12 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("admin_tools_stats", "0022_dashboardstats_queryset_modifiers"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="criteriatostatsm2m", | ||
name="choices_based_on_time_range", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text=( | ||
"If checked:<br>\n" | ||
"- divide values will not be cached\n" | ||
"- divide values will change with change of time range\n" | ||
"- other criteria will filter divide values\n" | ||
"\n" | ||
"If unchecked:\n" | ||
"- values will be cached\n" | ||
"- divide values are calculated from related models," | ||
"which can be much quicker for large datasets\n" | ||
), | ||
verbose_name="Calculate by queryset 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
Oops, something went wrong.