Skip to content

Commit cc0c862

Browse files
committed
Docstring on why PolymorphicManager
1 parent e20f0de commit cc0c862

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

readthedocs/builds/managers.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,15 @@ class ExternalBuildManager(SettingsOverrideObject):
183183

184184
class VersionAutomationRuleManager(PolymorphicManager):
185185

186+
"""
187+
Mananger for VersionAutomationRule.
188+
189+
.. note::
190+
191+
This manager needs to inherit from PolymorphicManager.
192+
See https://django-polymorphic.readthedocs.io/page/managers.html
193+
"""
194+
186195
def add_rule(
187196
self, *, project, description, match_arg, version_type,
188197
action, action_arg=None,

0 commit comments

Comments
 (0)