mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 09:46:32 +01:00
Remove mutual exclusivity between value/strvalue when searching for Attributes with manager
This commit is contained in:
parent
29ab570d55
commit
accd0f286e
1 changed files with 2 additions and 2 deletions
|
|
@ -65,8 +65,8 @@ class TypedObjectManager(idmapper.manager.SharedMemoryManager):
|
|||
query.append(("attribute__db_category", category))
|
||||
if strvalue:
|
||||
query.append(("attribute__db_strvalue", strvalue))
|
||||
elif value:
|
||||
# strvalue and value are mutually exclusive
|
||||
if value:
|
||||
# no reason to make strvalue/value mutually exclusive at this level
|
||||
query.append(("attribute__db_value", value))
|
||||
return Attribute.objects.filter(
|
||||
pk__in=self.model.db_attributes.through.objects.filter(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue