mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-30 04:16:24 -06:00
7699 update docstring
This commit is contained in:
parent
88aa554477
commit
e1e6bfd757
@ -35,7 +35,10 @@ class RenderConfigMixin(models.Model):
|
|||||||
|
|
||||||
class CachedScopeMixin(models.Model):
|
class CachedScopeMixin(models.Model):
|
||||||
"""
|
"""
|
||||||
Cached associations for scope to enable efficient filtering
|
Mixin for adding a GFK Scope to a model that can point to a Region, SiteGroup, Site, or Location. Includes
|
||||||
|
cached fields for each to allow efficient filtering. Must do any appropriate validation in the clean method
|
||||||
|
as this does not have any as validation is generally model specific.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
scope_type = models.ForeignKey(
|
scope_type = models.ForeignKey(
|
||||||
to='contenttypes.ContentType',
|
to='contenttypes.ContentType',
|
||||||
|
Loading…
Reference in New Issue
Block a user