|
|
@@ -137,16 +137,28 @@ class TenancyShotRequestInfo(BaseModelMixin):
|
137
|
137
|
shot = TenancyShotInfo.objects.get(shot_id=self.shot_id)
|
138
|
138
|
except TenancyShotInfo.DoesNotExist:
|
139
|
139
|
shot = None
|
|
140
|
+
|
|
141
|
+ try:
|
|
142
|
+ model = ModelInfo.objects.get(model_id=self.model_id, status=True)
|
|
143
|
+ except ModelInfo.DoesNotExist:
|
|
144
|
+ model = None
|
|
145
|
+
|
140
|
146
|
return {
|
141
|
147
|
'req_id': self.request_id,
|
142
|
148
|
'request_id': self.request_id,
|
143
|
149
|
'shot_id': self.shot_id,
|
|
150
|
+ 'model_info': model.admindata,
|
144
|
151
|
'shot_info': shot.data if shot else {},
|
145
|
152
|
'front_cap_status': self.front_cap_status,
|
146
|
153
|
'rear_cap_status': self.rear_cap_status,
|
147
|
154
|
'lens_hood_status': self.lens_hood_status,
|
148
|
155
|
'tripod_ring_status': self.tripod_ring_status,
|
149
|
156
|
'appearance_performance_status': self.appearance_performance_status,
|
|
157
|
+ 'front_cap_status': self.front_cap_status,
|
|
158
|
+ 'rear_cap_status': self.rear_cap_status,
|
|
159
|
+ 'lens_hood_status': self.lens_hood_status,
|
|
160
|
+ 'tripod_ring_status': self.tripod_ring_status,
|
|
161
|
+ 'appearance_performance_status': self.appearance_performance_status,
|
150
|
162
|
'user_id': self.user_id,
|
151
|
163
|
'name': self.name,
|
152
|
164
|
'phone': self.phone,
|