Skip to content

Commit

Permalink
Fixes #317
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverroick committed Oct 28, 2015
1 parent e313c73 commit 28c58f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geokey/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ def post(self, request, project_id):
status=status.HTTP_400_BAD_REQUEST
)

serializer = UserSerializer(project.admins.all(), many=True)
refreshed_admins = Project.objects.get(pk=project_id).admins.all()
serializer = UserSerializer(refreshed_admins, many=True)
return Response(
{'users': serializer.data},
status=status.HTTP_201_CREATED
Expand Down

0 comments on commit 28c58f7

Please sign in to comment.