mirror of
https://github.com/evennia/evennia.git
synced 2026-04-08 09:24:37 +02:00
Fixed clearing in Tags vith tags.clear()
This commit is contained in:
parent
50e7b37191
commit
a0189a91ad
1 changed files with 1 additions and 2 deletions
|
|
@ -688,8 +688,7 @@ class TagHandler(object):
|
|||
|
||||
def clear(self):
|
||||
"Remove all tags from the handler"
|
||||
for tag in getattr(self.obj, self._m2m_fieldname).filter(db_model=self._model, db_tagtype=self._tagtype):
|
||||
getattr(self.obj, self._m2m_fieldname).remove(tag)
|
||||
getattr(self.obj, self._m2m_fieldname).clear()
|
||||
self._recache()
|
||||
|
||||
def all(self, category=None, return_key_and_category=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue