diff options
author | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-12-17 16:37:25 +0800 |
---|---|---|
committer | hongyuzhao <zhao.hongyu@zte.com.cn> | 2020-01-04 15:35:30 +0800 |
commit | 2479a0739895b15a13a07aa8260598483249c621 (patch) | |
tree | ad6028ebf9490fa63e19dc5f150d555c003517df /catalog/pub/database | |
parent | 47aa1d9d81d42c23f128b5bc7fec52b3f404cc8b (diff) |
Refactor the notification process code
Change-Id: Ie12527c77e5cacc55bdc3bc1505ec130e9d3c582
Issue-ID: MODELING-269
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
Diffstat (limited to 'catalog/pub/database')
-rw-r--r-- | catalog/pub/database/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/catalog/pub/database/models.py b/catalog/pub/database/models.py index 9f0b498..950d667 100644 --- a/catalog/pub/database/models.py +++ b/catalog/pub/database/models.py @@ -198,6 +198,9 @@ class NsdmSubscriptionModel(models.Model): import json return json.dumps(dict([(attr, getattr(self, attr)) for attr in [f.name for f in self._meta.fields]])) + def get_subscription_id(self): + return self.subscriptionid + class VnfPkgSubscriptionModel(models.Model): subscription_id = models.CharField(max_length=255, primary_key=True, db_column='SUBSCRIPTION_ID') @@ -232,3 +235,6 @@ class VnfPkgSubscriptionModel(models.Model): } subscription_obj["filter"] = filter_obj return subscription_obj + + def get_subscription_id(self): + return self.subscription_id |