mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
Point constructed inventory URL to special view (#13730)
This commit is contained in:
parent
be5a2bbe61
commit
62b79b1959
@ -206,6 +206,8 @@ class Inventory(CommonModelNameNotUnique, ResourceMixin, RelatedJobsMixin):
|
||||
)
|
||||
|
||||
def get_absolute_url(self, request=None):
|
||||
if self.kind == 'constructed':
|
||||
return reverse('api:constructed_inventory_detail', kwargs={'pk': self.pk}, request=request)
|
||||
return reverse('api:inventory_detail', kwargs={'pk': self.pk}, request=request)
|
||||
|
||||
variables_dict = VarsDictProperty('variables')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user