diff --git a/djautotask/__init__.py b/djautotask/__init__.py index b29a95a..109c353 100644 --- a/djautotask/__init__.py +++ b/djautotask/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -VERSION = (1, 6, 11, 'final') +VERSION = (1, 6, 12, 'final') # pragma: no cover if VERSION[-1] != "final": diff --git a/djautotask/sync.py b/djautotask/sync.py index e9a7139..1ad9865 100644 --- a/djautotask/sync.py +++ b/djautotask/sync.py @@ -1860,7 +1860,13 @@ class ResourceSynchronizer(Synchronizer): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.client.add_condition(A(op='eq', field='isActive', value=True)) + self.client.add_condition( + A( + A(op='eq', field='isActive', value=True), + A(op='eq', field='isActive', value=False), + op='or' + ) + ) def _assign_field_data(self, instance, object_data): instance.id = object_data['id']