mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 04:47:44 -02:30
Point constructed inventory URL to special view (#13730)
This commit is contained in:
committed by
Rick Elrod
parent
be5a2bbe61
commit
62b79b1959
@@ -206,6 +206,8 @@ class Inventory(CommonModelNameNotUnique, ResourceMixin, RelatedJobsMixin):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def get_absolute_url(self, request=None):
|
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)
|
return reverse('api:inventory_detail', kwargs={'pk': self.pk}, request=request)
|
||||||
|
|
||||||
variables_dict = VarsDictProperty('variables')
|
variables_dict = VarsDictProperty('variables')
|
||||||
|
|||||||
Reference in New Issue
Block a user