Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
return app info on build hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Monroy committed Feb 12, 2014
1 parent c7251a7 commit 3913498
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,9 @@ def create(self, request, *args, **kwargs):
request._data = request.DATA.copy()
request.DATA['app'] = app
request.DATA['owner'] = user
return super(BuildHookViewSet, self).create(request, *args, **kwargs)
super(BuildHookViewSet, self).create(request, *args, **kwargs)
# return the application databag
return Response(app.calculate(), status=status.HTTP_200_OK)
raise PermissionDenied()

def post_save(self, obj, created=False):
Expand Down

0 comments on commit 3913498

Please sign in to comment.