Explorar el Código

Fix validation of DataSource URL

jeremystretch hace 2 años
padre
commit
86d185fe05
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      netbox/core/models/data.py

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

@@ -113,7 +113,7 @@ class DataSource(JobsMixin, PrimaryModel):
         # Ensure URL scheme matches selected type
         if self.type == DataSourceTypeChoices.LOCAL and self.url_scheme not in ('file', ''):
             raise ValidationError({
-                'url': f"URLs for local sources must start with file:// (or omit the scheme)"
+                'source_url': f"URLs for local sources must start with file:// (or specify no scheme)"
             })
 
     def enqueue_sync_job(self, request):