Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Sep 27, 2024
1 parent bb7c456 commit eb9da41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rdmo/projects/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,14 @@ def filter_set(self, set_value):
if element.attribute == set_value.attribute:
attributes.update([descendant.attribute for descendant in element.descendants])

# construct the set_prefix for decendants for this set
decendants_set_prefix = \
# construct the set_prefix for descendants for this set
descendants_set_prefix = \
f'{set_value.set_prefix}|{set_value.set_index}' if set_value.set_prefix else str(set_value.set_index)

# collect all values for this set and all decendants
# collect all values for this set and all descendants
return self.filter(attribute__in=attributes).filter(
Q(set_prefix=set_value.set_prefix, set_index=set_value.set_index) |
Q(set_prefix__startswith=decendants_set_prefix)
Q(set_prefix__startswith=descendants_set_prefix)
)


Expand Down

0 comments on commit eb9da41

Please sign in to comment.