Skip to content

Commit ebe257d

Browse files
Fixes #242: Use RestrictedQuerySet for BranchEvent objects (#255)
1 parent 4532b0b commit ebe257d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

netbox_branching/models/branches.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
record_applied_change,
3333
)
3434
from utilities.exceptions import AbortRequest, AbortTransaction
35+
from utilities.querysets import RestrictedQuerySet
3536
from .changes import ObjectChange
3637

3738
__all__ = (
@@ -677,6 +678,8 @@ class BranchEvent(models.Model):
677678
editable=False
678679
)
679680

681+
objects = RestrictedQuerySet.as_manager()
682+
680683
class Meta:
681684
ordering = ('-time',)
682685
verbose_name = _('branch event')

0 commit comments

Comments
 (0)