mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-17 07:36:44 +01:00
Fixes #14349: Fix custom validation support for DataSource
This commit is contained in:
@@ -122,6 +122,7 @@ class DataSource(JobsMixin, PrimaryModel):
|
||||
)
|
||||
|
||||
def clean(self):
|
||||
super().clean()
|
||||
|
||||
# Ensure URL scheme matches selected type
|
||||
if self.type == DataSourceTypeChoices.LOCAL and self.url_scheme not in ('file', ''):
|
||||
|
||||
Reference in New Issue
Block a user