Просмотр исходного кода

Fixes #14349: Fix custom validation support for DataSource

Jeremy Stretch 2 лет назад
Родитель
Сommit
080da68b6a
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      netbox/core/models/data.py

+ 1 - 0
netbox/core/models/data.py

@@ -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', ''):