Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1757 | added logo_url in users list respons…
Browse files Browse the repository at this point in the history
…e | removed redundant condition
  • Loading branch information
snyaggarwal committed Feb 15, 2024
1 parent c9b62ed commit ef2527f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions core/orgs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ def get_queryset(self):


class OrganizationDetailView(OrganizationBaseView, mixins.UpdateModelMixin, mixins.CreateModelMixin, TaskMixin):
def get_queryset(self):
return super().get_queryset().filter(mnemonic=self.kwargs['org'])

def get_permissions(self):
if self.request.method == 'DELETE':
return [HasPrivateAccess(), ]
Expand Down
2 changes: 1 addition & 1 deletion core/users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class UserListSerializer(AbstractResourceSerializer):
class Meta:
model = UserProfile
fields = AbstractResourceSerializer.Meta.fields + (
'username', 'name', 'url'
'username', 'name', 'url', 'logo_url'
)


Expand Down

0 comments on commit ef2527f

Please sign in to comment.