Remove registration decline message on approved vendor.

Remove registration decline reason (if exist) when approving a
vendor's registration request.

Change-Id: I88102c302555fcd65f715f511a5a445efe7437b3
This commit is contained in:
Catherine Diep 2016-11-28 15:06:05 -08:00
parent c67ec09349
commit b6cfe62b3b

View File

@ -255,7 +255,7 @@ class VendorsController(validation.BaseRestControllerWithValidation):
# change vendor type to public
props = vendor.get('properties')
props = json.loads(props) if props else {}
props.pop('reason', None)
props.pop('registration_decline_reason', None)
org_info = {
'id': vendor['id'],
'type': const.OFFICIAL_VENDOR,