mirror of
https://github.com/evennia/evennia.git
synced 2026-04-01 05:27:17 +02:00
Fixed bug in taghandler. Resolves #516.
This commit is contained in:
parent
43da170962
commit
ce2d11ad12
1 changed files with 1 additions and 3 deletions
|
|
@ -629,7 +629,7 @@ class TagHandler(object):
|
|||
category = category.strip().lower() if category is not None else None
|
||||
matches = getattr(self.obj, self._m2m_fieldname).filter(db_category=category,
|
||||
db_tagtype=self._tagtype,
|
||||
db_model=self._model).values_list("db_key")
|
||||
db_model=self._model)
|
||||
else:
|
||||
matches = self._cache.values()
|
||||
if matches:
|
||||
|
|
@ -640,8 +640,6 @@ class TagHandler(object):
|
|||
return [to_str(p.db_key) for p in matches]
|
||||
return []
|
||||
|
||||
#return [to_str(p[0]) for p in getattr(self.obj, self._m2m_fieldname).filter(db_category__startswith=self.prefix).values_list("db_key") if p[0]]
|
||||
|
||||
def __str__(self):
|
||||
return ",".join(self.all())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue