Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -118,6 +118,7 @@ def list_me(request): | ... | @@ -118,6 +118,7 @@ def list_me(request): |
118 | data = [] | 118 | data = [] |
119 | for group in groups: | 119 | for group in groups: |
120 | data.append({ | 120 | data.append({ |
121 | + 'id': group.id, | ||
121 | 'name': group.name, | 122 | 'name': group.name, |
122 | 'root_folder': group.root_folder, | 123 | 'root_folder': group.root_folder, |
123 | }) | 124 | }) |
... | @@ -145,6 +146,7 @@ def find_item(request, group_id): | ... | @@ -145,6 +146,7 @@ def find_item(request, group_id): |
145 | 146 | ||
146 | # Serialize | 147 | # Serialize |
147 | data = { | 148 | data = { |
149 | + 'id': group[0].id, | ||
148 | 'name': group[0].name, | 150 | 'name': group[0].name, |
149 | 'root_folder': group[0].root_folder, | 151 | 'root_folder': group[0].root_folder, |
150 | } | 152 | } |
... | @@ -159,7 +161,6 @@ def find_item(request, group_id): | ... | @@ -159,7 +161,6 @@ def find_item(request, group_id): |
159 | 'id': user.id, | 161 | 'id': user.id, |
160 | 'name': user.name, | 162 | 'name': user.name, |
161 | }) | 163 | }) |
162 | - data['id'] = group[0].id | ||
163 | data['users'] = user_data | 164 | data['users'] = user_data |
164 | data['invite_code'] = group[0].invite_code | 165 | data['invite_code'] = group[0].invite_code |
165 | data['is_owner'] = True | 166 | data['is_owner'] = True | ... | ... |
-
Please register or login to post a comment