-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] Added configuration variables to DeviceGroup #738
Closes #738
- Loading branch information
Showing
16 changed files
with
358 additions
and
92 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
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
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
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
31 changes: 31 additions & 0 deletions
31
openwisp_controller/config/migrations/0049_devicegroup_context.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,31 @@ | ||
# Generated by Django 3.2.19 on 2023-06-27 14:45 | ||
|
||
import collections | ||
|
||
import jsonfield.fields | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('config', '0048_wifi_radio_band_migration'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='devicegroup', | ||
name='context', | ||
field=jsonfield.fields.JSONField( | ||
blank=True, | ||
default=dict, | ||
dump_kwargs={'ensure_ascii': False, 'indent': 4}, | ||
help_text=( | ||
'This field can be used to add meta data for the group' | ||
' or to add "Configuration Variables" to the devices.' | ||
), | ||
load_kwargs={'object_pairs_hook': collections.OrderedDict}, | ||
verbose_name='Configuration Variables', | ||
), | ||
), | ||
] |
Oops, something went wrong.