This repository has been archived by the owner on Jul 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[validation] 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
ff7065f
commit 14756fe
Showing
12 changed files
with
849 additions
and
623 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
27 changes: 27 additions & 0 deletions
27
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,27 @@ | ||
# Generated by Django 3.0.4 on 2020-04-08 23:46 | ||
|
||
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.