-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for filtering by a classname longer than twenty character…
…s and multiple classnames (#187) * Add support for filtering by classname longer than twenty characters * Standarize all the CharFields of the model to the same max length * Fix form field type * Fix formatting * Catch ImportErrors on new functionality * Fix format on import --------- Co-authored-by: Israel Pineda <[email protected]>
- Loading branch information
Showing
4 changed files
with
56 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added support for filtering by Compliance Class Name with a name longer than twenty characters and to filter by multiple names at the same time. |
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
37 changes: 37 additions & 0 deletions
37
..._validation_engine/migrations/0007_alter_datacompliance_compliance_class_name_and_more.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,37 @@ | ||
# Generated by Django 4.2.16 on 2024-10-23 20:57 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("nautobot_data_validation_engine", "0006_add_field_defaults"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="datacompliance", | ||
name="compliance_class_name", | ||
field=models.CharField(max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name="datacompliance", | ||
name="object_id", | ||
field=models.CharField(max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name="datacompliance", | ||
name="validated_attribute", | ||
field=models.CharField(blank=True, default="", max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name="datacompliance", | ||
name="validated_attribute_value", | ||
field=models.CharField(blank=True, default="", max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name="datacompliance", | ||
name="validated_object_str", | ||
field=models.CharField(blank=True, default="", max_length=255), | ||
), | ||
] |
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