This repository has been archived by the owner on Jul 9, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[enhancement] Enable validation of context variables in templates #175
Fixed the issue by removing uneccessary work which @okraits began by doing after he extracted the gsoc2019 branch. Fixes #175
- Loading branch information
1 parent
9d6644f
commit 5a0b141
Showing
13 changed files
with
758 additions
and
622 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,3 +62,4 @@ target/ | |
local_settings.py | ||
*.db | ||
*.tar.gz | ||
Pipfile |
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
20 changes: 20 additions & 0 deletions
20
django_netjsonconfig/migrations/0044_template_default_values.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,20 @@ | ||
# Generated by Django 3.0.6 on 2020-05-15 15:18 | ||
|
||
import collections | ||
from django.db import migrations | ||
import jsonfield.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('django_netjsonconfig', '0043_add_indexes_on_ip_fields'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='template', | ||
name='default_values', | ||
field=jsonfield.fields.JSONField(blank=True, default=dict, dump_kwargs={'ensure_ascii': False, 'indent': 4}, help_text='A dictionary containing the default values for the variables used by this template; these default variables will be used during schema validation.', load_kwargs={'object_pairs_hook': collections.OrderedDict}, verbose_name='Default Values'), | ||
), | ||
] |
Oops, something went wrong.