You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2018/02/22 16:14:34 UTC

[airavata-django-portal] 02/03: AIRAVATA-2685 Fix assigning group id for newly created group

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit efbd6549f0a9ce41bad3a62ed0f807a9fb2a11e4
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Thu Feb 22 11:13:56 2018 -0500

    AIRAVATA-2685 Fix assigning group id for newly created group
---
 django_airavata/apps/api/views.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/django_airavata/apps/api/views.py b/django_airavata/apps/api/views.py
index 2aa0c47..971be73 100644
--- a/django_airavata/apps/api/views.py
+++ b/django_airavata/apps/api/views.py
@@ -209,16 +209,16 @@ class GroupViewSet(APIBackedViewSet):
         return GroupResultsIterator()
 
     def get_instance(self, lookup_value):
-        return self.request.airavata_client.getGroup(self.authz_token, self.gateway_id, lookup_value)
+        return self.request.profile_service['group_manager'].getGroup(self.authz_token, lookup_value)
 
     def perform_create(self, serializer):
         group = serializer.save()
         group_id = self.request.profile_service['group_manager'].createGroup(self.authz_token, group)
-        group.groupID = group_id
+        group.id = group_id
 
     def perform_update(self, serializer):
         group = serializer.save()
-        self.request.airavata_client.updateGroup(self.authz_token, group)
+        self.request.profile_service['group_manager'].updateGroup(self.authz_token, group)
 
 
 class ProjectViewSet(APIBackedViewSet):

-- 
To stop receiving notification emails like this one, please contact
machristie@apache.org.