Skip to content

Commit

Permalink
Concept/Mapping | simplifying version get criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Aug 2, 2021
1 parent 61f2895 commit cdf7e20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/concepts/models.py
Expand Up @@ -363,7 +363,7 @@ def get_base_queryset(cls, params): # pylint: disable=too-many-branches,too-man
decode_string(concept), decode_string(concept, False)]
queryset = queryset.filter(mnemonic__in=mnemonics)
if concept_version:
queryset = queryset.filter(cls.get_iexact_or_criteria('version', concept_version))
queryset = queryset.filter(version=concept_version)
if is_latest:
queryset = queryset.filter(is_latest_version=True)
if not include_retired and not concept:
Expand Down
2 changes: 1 addition & 1 deletion core/mappings/models.py
Expand Up @@ -491,7 +491,7 @@ def get_base_queryset(cls, params): # pylint: disable=too-many-branches,too-man
if mapping:
queryset = queryset.filter(mnemonic__exact=mapping)
if mapping_version:
queryset = queryset.filter(cls.get_iexact_or_criteria('version', mapping_version))
queryset = queryset.filter(version=mapping_version)
if is_latest:
queryset = queryset.filter(is_latest_version=True)
if not include_retired and not mapping:
Expand Down

0 comments on commit cdf7e20

Please sign in to comment.