Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#845 | performance | merging excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Jul 26, 2021
1 parent fc14254 commit 4df9694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/concepts/custom_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def no_other_record_has_same_name(self, name, versioned_object_id):

return not self.repo.concepts_set.exclude(
versioned_object_id=versioned_object_id
).exclude(names__type__in=LOCALES_SHORT).exclude(names__type__in=LOCALES_SEARCH_INDEX_TERM).filter(
).exclude(names__type__in=(*LOCALES_SHORT, *LOCALES_SEARCH_INDEX_TERM)).filter(
is_active=True, retired=False, is_latest_version=True, names__locale=name.locale, names__name=name.name
).exists()

Expand Down

0 comments on commit 4df9694

Please sign in to comment.