Skip to content

Commit

Permalink
Document TagTreeModel's descendant_count and family_count
Browse files Browse the repository at this point in the history
fixes #182
  • Loading branch information
radiac committed Aug 15, 2024
1 parent fd2d6a1 commit 256bbe1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/models/tag_trees.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ saving, creating missing ancestors as needed.
The reverse relation manager for ``parent``, eg ``mytag.children.all()``.


``descendant_count``
~~~~~~~~~~~~~~~~~~~~
The number of times descendants have been used.


``family_count``
~~~~~~~~~~~~~~~~
The number of times this tag and its descendants have been used.


``label``
~~~~~~~~~
A ``CharField`` containing the name of the tag without its ancestors.
Expand Down

0 comments on commit 256bbe1

Please sign in to comment.