|
@@ -95,6 +95,10 @@ class DataSource(JobsMixin, PrimaryModel):
|
|
|
def url_scheme(self):
|
|
def url_scheme(self):
|
|
|
return urlparse(self.source_url).scheme.lower()
|
|
return urlparse(self.source_url).scheme.lower()
|
|
|
|
|
|
|
|
|
|
+ @property
|
|
|
|
|
+ def is_local(self):
|
|
|
|
|
+ return self.type == DataSourceTypeChoices.LOCAL
|
|
|
|
|
+
|
|
|
@property
|
|
@property
|
|
|
def ready_for_sync(self):
|
|
def ready_for_sync(self):
|
|
|
return self.enabled and self.status not in (
|
|
return self.enabled and self.status not in (
|