mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 06:56:00 -03:30
Improve the can_user_add model hook to allow it to pre-examine data for context.
This commit is contained in:
@@ -87,7 +87,7 @@ class InventorySerializer(BaseSerializer):
|
||||
|
||||
class Meta:
|
||||
model = Inventory
|
||||
fields = ('url', 'id', 'name', 'description', 'creation_date')
|
||||
fields = ('url', 'id', 'name', 'description', 'creation_date', 'organization')
|
||||
|
||||
def get_related(self, obj):
|
||||
# FIXME: add related resources: inventories
|
||||
|
||||
Reference in New Issue
Block a user