|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # Generated by Django 1.10.5 on 2017-05-03 17:54 |
3 | 3 |
|
4 | | -import collections |
5 | 4 | import re |
6 | 5 | import uuid |
7 | 6 |
|
8 | 7 | import django.core.validators |
9 | 8 | import django.utils.timezone |
10 | | -import jsonfield.fields |
11 | 9 | import model_utils.fields |
12 | 10 | from django.conf import settings |
13 | 11 | from django.db import migrations, models |
@@ -58,12 +56,10 @@ class Migration(migrations.Migration): |
58 | 56 | ), |
59 | 57 | ( |
60 | 58 | "config", |
61 | | - jsonfield.fields.JSONField( |
| 59 | + models.JSONField( |
62 | 60 | blank=True, |
63 | 61 | default=dict, |
64 | | - dump_kwargs={"ensure_ascii": False, "indent": 4}, |
65 | 62 | help_text="configuration in NetJSON DeviceConfiguration format", |
66 | | - load_kwargs={"object_pairs_hook": collections.OrderedDict}, |
67 | 63 | verbose_name="configuration", |
68 | 64 | ), |
69 | 65 | ), |
@@ -250,12 +246,10 @@ class Migration(migrations.Migration): |
250 | 246 | ), |
251 | 247 | ( |
252 | 248 | "config", |
253 | | - jsonfield.fields.JSONField( |
| 249 | + models.JSONField( |
254 | 250 | blank=True, |
255 | 251 | default=dict, |
256 | | - dump_kwargs={"ensure_ascii": False, "indent": 4}, |
257 | 252 | help_text="configuration in NetJSON DeviceConfiguration format", |
258 | | - load_kwargs={"object_pairs_hook": collections.OrderedDict}, |
259 | 253 | verbose_name="configuration", |
260 | 254 | ), |
261 | 255 | ), |
@@ -347,11 +341,9 @@ class Migration(migrations.Migration): |
347 | 341 | ("name", models.CharField(max_length=64, unique=True)), |
348 | 342 | ( |
349 | 343 | "config", |
350 | | - jsonfield.fields.JSONField( |
| 344 | + models.JSONField( |
351 | 345 | default=dict, |
352 | | - dump_kwargs={"ensure_ascii": False, "indent": 4}, |
353 | 346 | help_text="configuration in NetJSON DeviceConfiguration format", |
354 | | - load_kwargs={"object_pairs_hook": collections.OrderedDict}, |
355 | 347 | verbose_name="configuration", |
356 | 348 | ), |
357 | 349 | ), |
|
0 commit comments