Removed a lot of old references to Aliases and Nicks. Still failing on @puppet.
This commit is contained in:
parent
0061f884ae
commit
c0b5c506a4
5 changed files with 85 additions and 70 deletions
|
|
@ -420,7 +420,7 @@ def holds(accessing_obj, accessed_obj, *args, **kwargs):
|
|||
return True
|
||||
objid = objid.lower()
|
||||
return any((True for obj in contents
|
||||
if obj.key.lower() == objid or objid in [al.lower() for al in obj.aliases]))
|
||||
if obj.key.lower() == objid or objid in [al.lower() for al in obj.aliases.all()]))
|
||||
if not args:
|
||||
# holds() - check if accessed_obj or accessed_obj.obj is held by accessing_obj
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue