-
-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: hide custom fields in summary tab only closes #1745
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
api/tacticalrmm/core/migrations/0040_customfield_hide_in_summary.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,18 @@ | ||
# Generated by Django 4.2.9 on 2024-01-28 02:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("core", "0039_coresettings_smtp_from_name"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="customfield", | ||
name="hide_in_summary", | ||
field=models.BooleanField(default=False), | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
api/tacticalrmm/core/migrations/0041_auto_20240128_0301.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,18 @@ | ||
# Generated by Django 4.2.9 on 2024-01-28 03:01 | ||
|
||
from django.db import migrations | ||
|
||
|
||
def update_hide_in_summary(apps, schema_editor): | ||
CustomField = apps.get_model("core", "CustomField") | ||
for field in CustomField.objects.filter(hide_in_ui=True): | ||
field.hide_in_summary = True | ||
field.save(update_fields=["hide_in_summary"]) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0040_customfield_hide_in_summary"), | ||
] | ||
|
||
operations = [migrations.RunPython(update_hide_in_summary)] |
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