@@ -215,8 +215,14 @@ class IsolationPointUserInfo(BaseModelMixin): |
||
| 215 | 215 |
|
| 216 | 216 |
@property |
| 217 | 217 |
def userdata(self): |
| 218 |
+ try: |
|
| 219 |
+ point = IsolationPointInfo.objects.get(point_id=self.point_id) |
|
| 220 |
+ except IsolationPointInfo.DoesNotExist: |
|
| 221 |
+ point = {}
|
|
| 222 |
+ |
|
| 218 | 223 |
return {
|
| 219 | 224 |
'point_id': self.point_id, |
| 225 |
+ 'point_name': point.point_name if point else '', |
|
| 220 | 226 |
'user_id': self.user_id, |
| 221 | 227 |
**{field.get('key', ''): field.get('value', '') for field in self.fields}
|
| 222 | 228 |
} |