Closes #8198: Custom field uniqueness (#16661)

* Closes #8198: Implement ability to enforce custom field uniqueness

* Add missing form fields & table columns for validation attributes

* Remove obsolete code
This commit is contained in:
Jeremy Stretch
2024-06-25 08:37:10 -04:00
committed by GitHub
parent 08ac5cd52c
commit 2b4577e365
16 changed files with 142 additions and 17 deletions

View File

@@ -154,7 +154,7 @@ class CustomFieldFilterSet(ChangeLoggedModelFilterSet):
fields = (
'id', 'name', 'label', 'group_name', 'required', 'search_weight', 'filter_logic', 'ui_visible',
'ui_editable', 'weight', 'is_cloneable', 'description', 'validation_minimum', 'validation_maximum',
'validation_regex',
'validation_regex', 'validation_unique',
)
def search(self, queryset, name, value):