From 8012762e6666fede2a753be5a1f9ab7c8bb10912 Mon Sep 17 00:00:00 2001 From: Anton M Date: Tue, 30 Jan 2024 03:11:58 +0500 Subject: [PATCH] cf type fix --- validity/migrations/0006_datasources.py | 6 +++--- validity/tests/conftest.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/validity/migrations/0006_datasources.py b/validity/migrations/0006_datasources.py index e19699b..dee966a 100644 --- a/validity/migrations/0006_datasources.py +++ b/validity/migrations/0006_datasources.py @@ -27,7 +27,7 @@ def setup_datasource_cf(apps, schema_editor): name="device_config_path", label=_("Device Config Path"), description=_("Required by Validity. J2 syntax allowed, e.g. devices/{{device.name}}.txt"), - type="string", + type="text", required=False, validation_regex=r"^[^/].*$", ), @@ -35,7 +35,7 @@ def setup_datasource_cf(apps, schema_editor): name="device_command_path", label=_("Device Command Path"), description=_("Required by Validity. J2 syntax allowed, e.g. {{device.name}}/{{command.label}}.txt"), - type="string", + type="text", required=False, validation_regex=r"^[^/].*$", ), @@ -43,7 +43,7 @@ def setup_datasource_cf(apps, schema_editor): name="web_url", label=_("Web URL"), description=_("Required by Validity. You may use {{branch}} substitution"), - type="string", + type="text", required=False, ), ] diff --git a/validity/tests/conftest.py b/validity/tests/conftest.py index 9d730e0..8a0ecaa 100644 --- a/validity/tests/conftest.py +++ b/validity/tests/conftest.py @@ -44,17 +44,17 @@ def create_custom_fields(db): ), CustomField( name="device_config_path", - type="string", + type="text", required=False, ), CustomField( name="web_url", - type="string", + type="text", required=False, ), CustomField( name="device_command_path", - type="string", + type="text", required=False, ), CustomField(