Fixes #14349: Fix custom validation support for DataSource

This commit is contained in:
Jeremy Stretch 2023-11-28 14:46:36 -05:00
parent e8099ce00c
commit c44645008c

View File

@ -122,6 +122,7 @@ class DataSource(JobsMixin, PrimaryModel):
) )
def clean(self): def clean(self):
super().clean()
# Ensure URL scheme matches selected type # Ensure URL scheme matches selected type
if self.type == DataSourceTypeChoices.LOCAL and self.url_scheme not in ('file', ''): if self.type == DataSourceTypeChoices.LOCAL and self.url_scheme not in ('file', ''):