Skip to content

Commit

Permalink
cf type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amyasnikov committed Jan 29, 2024
1 parent b783f53 commit 8012762
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions validity/migrations/0006_datasources.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,23 @@ 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"^[^/].*$",
),
CustomField(
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"^[^/].*$",
),
CustomField(
name="web_url",
label=_("Web URL"),
description=_("Required by Validity. You may use {{branch}} substitution"),
type="string",
type="text",
required=False,
),
]
Expand Down
6 changes: 3 additions & 3 deletions validity/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8012762

Please sign in to comment.