def __init__(self, data):
self.data = data
self.filter = ignore_case_get(self.data, "filter", {})
+ logger.debug("self.data:%s" % self.data)
+ logger.debug("self.filter:%s" % self.filter)
self.callback_uri = ignore_case_get(self.data, "callbackUri")
self.authentication = ignore_case_get(self.data, "authentication", {})
self.notification_types = ignore_case_get(self.filter, "notificationTypes", [])
}
SubscriptionModel.objects.create(subscription_id=self.subscription_id,
callback_uri=self.callback_uri,
- auth_info=self.authentication,
+ auth_info=json.dumps(self.authentication),
notification_types=json.dumps(self.notification_types),
operation_types=json.dumps(self.operation_types),
operation_states=json.dumps(self.operation_states),