12589 objectpermission get_absolute_url

This commit is contained in:
Arthur 2023-06-25 12:00:14 -07:00
parent ee29b2762d
commit b3b59a2e49

View File

@ -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])