2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-21 06:16:29 +00:00

Improved Owner.get_owner method and fixed tests (try#2)

This commit is contained in:
eeintech
2021-01-12 16:36:29 -05:00
parent 49c954aa68
commit 5ca03af3e2
4 changed files with 86 additions and 39 deletions

View File

@ -154,7 +154,7 @@ def authorized_owners(group):
owners = []
try:
for owner in group.get_users(include_group=True):
for owner in group.get_related_owners(include_group=True):
owners.append(owner.owner)
except AttributeError:
# group is None