@@ -1,4 +1,5 @@ |
||
1 | 1 |
# -*- coding: utf-8 -*- |
2 |
+import json |
|
2 | 3 |
|
3 | 4 |
from django.conf import settings |
4 | 5 |
from django_logit import logit |
@@ -42,7 +43,7 @@ def get_contribtion_contract_api(request): |
||
42 | 43 |
scheme_url = get_contribtion_contract_sign_mppath(lensman, flow_id) |
43 | 44 |
|
44 | 45 |
return response(200, data={ |
45 |
- 'contract': contract.mpdata, |
|
46 |
+ # 'contract': contract.mpdata, |
|
46 | 47 |
'scheme_url': scheme_url |
47 | 48 |
}) |
48 | 49 |
|
@@ -1,6 +1,4 @@ |
||
1 | 1 |
# -*- coding: utf-8 -*- |
2 |
-import json |
|
3 |
- |
|
4 | 2 |
from django.db import models |
5 | 3 |
from django.utils.translation import ugettext_lazy as _ |
6 | 4 |
from django_models_ext import BaseModelMixin, upload_file_path, upload_path |
@@ -77,7 +75,7 @@ class LensmanContributionContractInfo(BaseModelMixin): |
||
77 | 75 |
'lensman_id': self.lensman_id, |
78 | 76 |
'activity_id': self.activity_id, |
79 | 77 |
'contribution_id': self.contribution_id, |
80 |
- 'contract_content_fields': json.loads(self.contract_content_fields) if self.contract_content_fields else '', |
|
78 |
+ 'contract_content_fields': self.contract_content_fields, |
|
81 | 79 |
'contract_file_url': self.contract_file_url, |
82 | 80 |
'created_at': tc.local_string(utc_dt=self.created_at, format='%Y-%m-%d %H:%M:%S'), |
83 | 81 |
'updated_at': tc.local_string(utc_dt=self.updated_at, format='%Y-%m-%d %H:%M:%S') |