diff --git a/etiquette/photodb.py b/etiquette/photodb.py index 05c2d23..62595f5 100644 --- a/etiquette/photodb.py +++ b/etiquette/photodb.py @@ -796,6 +796,12 @@ class PDBTagMixin: else: raise exceptions.TagExists(existing_tag) + def get_root_tags(self): + ''' + Yield Tags that have no parent. + ''' + yield from self.get_root_things('tag') + def get_tag(self, name=None, id=None): ''' Redirect to get_tag_by_id or get_tag_by_name. @@ -855,12 +861,6 @@ class PDBTagMixin: def get_tags_by_id(self, ids): return self.get_things_by_id('tag', ids) - def get_root_tags(self): - ''' - Yield Tags that have no parent. - ''' - yield from self.get_root_things('tag') - @decorators.required_feature('tag.new') @decorators.transaction def new_tag(self, tagname, description=None, *, author=None, commit=True):