mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
12589 objectpermission get_absolute_url
This commit is contained in:
parent
ee29b2762d
commit
b3b59a2e49
@ -369,3 +369,6 @@ class ObjectPermission(models.Model):
|
||||
if type(self.constraints) is not list:
|
||||
return [self.constraints]
|
||||
return self.constraints
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('users:objectpermission', args=[self.pk])
|
||||
|
Loading…
Reference in New Issue
Block a user