mirror of
https://github.com/ansible/awx.git
synced 2026-03-14 15:37:29 -02:30
Allow settings access from api templates
This commit is contained in:
@@ -202,6 +202,7 @@ class GenericAPIView(generics.GenericAPIView, APIView):
|
||||
'model_verbose_name_plural': unicode(self.model._meta.verbose_name_plural),
|
||||
})
|
||||
d.update({'serializer_fields': self.get_serializer().metadata()})
|
||||
d['settings'] = settings
|
||||
return d
|
||||
|
||||
def metadata(self, request):
|
||||
|
||||
Reference in New Issue
Block a user