mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-15 12:59:35 -06:00
style: use != instead of not in for single SYNCING check
This commit is contained in:
parent
da4c669312
commit
57b47dc1ea
@ -111,9 +111,7 @@ class DataSource(JobsMixin, PrimaryModel):
|
|||||||
|
|
||||||
@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 != DataSourceStatusChoices.SYNCING
|
||||||
DataSourceStatusChoices.SYNCING
|
|
||||||
)
|
|
||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
super().clean()
|
super().clean()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user