Skip to content

Commit ea66d90

Browse files
committed
1 parent 63296fb commit ea66d90

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/concepts/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ def create_initial_version(cls, concept, **kwargs):
529529
def create_new_version_for(
530530
cls, instance, data, user, create_parent_version=True, add_prev_version_children=True,
531531
_hierarchy_processing=False, is_patch=False
532-
): # pylint: disable=too-many-arguments
532+
): # pylint: disable=too-many-arguments,too-many-locals
533533
mappings_payload = data.pop('mappings_payload', None)
534534
prev_latest = Concept.objects.filter(
535535
mnemonic=instance.mnemonic, parent_id=instance.parent_id, is_latest_version=True
@@ -576,7 +576,7 @@ def create_new_version_for(
576576
)
577577
if has_mapping_errors:
578578
instance.rollback_latest_version_to(prev_latest)
579-
errors['mappings'] = instance._get_errors_from_mappings(mappings_result)
579+
errors['mappings'] = instance._get_errors_from_mappings(mappings_result) # pylint: disable=protected-access
580580

581581
return errors
582582

@@ -732,7 +732,7 @@ def rollback_latest_version_to(self, prev_latest):
732732
def find_direct_mapping(self, mapping_id):
733733
return self.get_unidirectional_mappings().filter(mnemonic=str(mapping_id)).first() if mapping_id else None
734734

735-
def upsert_or_delete_mappings(self, mappings_payload, user):
735+
def upsert_or_delete_mappings(self, mappings_payload, user): # pylint: disable=too-many-locals,too-many-branches,too-many-statements
736736
from core.mappings.models import Mapping
737737
results = []
738738
any_with_errors = False

0 commit comments

Comments
 (0)