Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
MCKIN-24565 - Added new metadata fields into serailizer (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
naeem91 authored Sep 15, 2020
1 parent 4167530 commit 1bb9b2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions edx_solutions_organizations/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Meta:
""" Serializer/field specification """
model = Organization
fields = ('url', 'id', 'name', 'display_name', 'contact_name', 'contact_email', 'contact_phone',
'logo_url', 'users', 'groups', 'created', 'modified')
'logo_url', 'users', 'groups', 'created', 'modified', 'salesforce_id', 'additional_metadata',)
read_only = ('url', 'id', 'created')
extra_kwargs = {'users': {'allow_empty': True}, 'groups': {'allow_empty': True}}

Expand All @@ -25,7 +25,7 @@ class Meta:
""" Serializer/field specification """
model = Organization
fields = ('url', 'id', 'name', 'display_name', 'contact_name', 'contact_email', 'contact_phone',
'logo_url', 'created', 'modified')
'logo_url', 'created', 'modified', 'salesforce_id', 'additional_metadata',)
read_only = ('url', 'id', 'created',)


Expand All @@ -38,7 +38,8 @@ class Meta(object):
""" Serializer/field specification """
model = Organization
fields = ('url', 'id', 'name', 'display_name', 'number_of_courses', 'contact_name', 'contact_email',
'contact_phone', 'logo_url', 'created', 'modified', 'number_of_participants')
'contact_phone', 'logo_url', 'created', 'modified', 'number_of_participants', 'salesforce_id',
'additional_metadata',)


class OrganizationWithParticipantCountSerializer(BasicOrganizationSerializer):
Expand All @@ -49,7 +50,8 @@ class Meta(object):
""" Serializer/field specification """
model = Organization
fields = ('url', 'id', 'name', 'display_name', 'contact_name', 'contact_email',
'contact_phone', 'logo_url', 'created', 'modified', 'number_of_participants')
'contact_phone', 'logo_url', 'created', 'modified', 'number_of_participants', 'salesforce_id',
'additional_metadata',)


class OrganizationAttributesSerializer(serializers.ModelSerializer):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name='organizations-edx-platform-extensions',
version='2.0.6',
version='2.0.7',
description='Organization management extension for edX platform',
long_description=open('README.rst').read(),
author='edX',
Expand Down

0 comments on commit 1bb9b2b

Please sign in to comment.