You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 27, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: django_netjsongraph/migrations/0003_topology_receive_strategy.py
+9-3
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,12 @@
1
1
# -*- coding: utf-8 -*-
2
2
# Generated by Django 1.9 on 2016-01-24 14:35
3
-
importdjango_netjsongraph.models
3
+
from __future__ importunicode_literals
4
+
5
+
importre
6
+
7
+
importdjango.core.validators
8
+
importopenwisp_utils.base
9
+
importopenwisp_utils.utils
4
10
fromdjango.dbimportmigrations, models
5
11
6
12
@@ -24,6 +30,6 @@ class Migration(migrations.Migration):
24
30
migrations.AddField(
25
31
model_name='topology',
26
32
name='key',
27
-
field=models.CharField(blank=True, default=django_netjsongraph.utils.get_random_key, help_text='key needed to update topology from nodes ', max_length=64, verbose_name='key'),
28
-
)
33
+
field=openwisp_utils.base.KeyField(blank=True, default=openwisp_utils.utils.get_random_key, help_text='key needed to update topology from nodes ', max_length=64, validators=[django.core.validators.RegexValidator(re.compile('^[^\\s/\\.]+$'), code='invalid', message='This value must not contain spaces, dots or slashes.')], verbose_name='key'),
0 commit comments