mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -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:
|
if type(self.constraints) is not list:
|
||||||
return [self.constraints]
|
return [self.constraints]
|
||||||
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