-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
list objects manager first, use SiteModelAdminMixin, move DataManager…
…SiteModelAdminMixin to modeladmin_mixins module
- Loading branch information
Showing
6 changed files
with
94 additions
and
9 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
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
57 changes: 57 additions & 0 deletions
57
edc_data_manager/migrations/0028_alter_dataquery_options_alter_queryrule_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,57 @@ | ||
# Generated by Django 4.2.1 on 2023-07-05 02:16 | ||
|
||
from django.db import migrations | ||
import django.db.models.manager | ||
import edc_sites.model_mixins | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("edc_data_manager", "0027_alter_dataquery_dm_user"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="dataquery", | ||
options={ | ||
"default_manager_name": "objects", | ||
"default_permissions": ( | ||
"add", | ||
"change", | ||
"delete", | ||
"view", | ||
"export", | ||
"import", | ||
), | ||
"get_latest_by": "modified", | ||
"ordering": ("-modified", "-created"), | ||
"verbose_name": "Data Query", | ||
"verbose_name_plural": "Data Queries", | ||
}, | ||
), | ||
migrations.AlterModelOptions( | ||
name="queryrule", | ||
options={ | ||
"default_manager_name": "objects", | ||
"default_permissions": ( | ||
"add", | ||
"change", | ||
"delete", | ||
"view", | ||
"export", | ||
"import", | ||
), | ||
"get_latest_by": "modified", | ||
"ordering": ("title",), | ||
"verbose_name": "Query Rule", | ||
"verbose_name_plural": "Query Rules", | ||
}, | ||
), | ||
migrations.AlterModelManagers( | ||
name="dataquery", | ||
managers=[ | ||
("on_site", edc_sites.model_mixins.CurrentSiteManager()), | ||
("objects", django.db.models.manager.Manager()), | ||
], | ||
), | ||
] |
24 changes: 24 additions & 0 deletions
24
edc_data_manager/migrations/0029_alter_dataquery_managers.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,24 @@ | ||
# Generated by Django 4.2.1 on 2023-07-07 19:32 | ||
|
||
from django.db import migrations | ||
import django.db.models.manager | ||
import edc_sites.model_mixins | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
( | ||
"edc_data_manager", | ||
"0028_alter_dataquery_options_alter_queryrule_options_and_more", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelManagers( | ||
name="dataquery", | ||
managers=[ | ||
("objects", django.db.models.manager.Manager()), | ||
("on_site", edc_sites.model_mixins.CurrentSiteManager()), | ||
], | ||
), | ||
] |
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
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