Merge branch 'tamron' of git.xfoto.com.cn:Kodo/kodo into tamron

huangqimin001 8 months ago
parent
commit
20a698f333
2 changed files with 6 additions and 0 deletions
  1. 2 0
      account/models.py
  2. 4 0
      api/lensman_admin_views.py

+ 2 - 0
account/models.py

@@ -445,6 +445,8 @@ class LensmanInfo(BaseModelMixin):
445 445
             'integral_end_date': self.integral_end_date,
446 446
             'is_expired': self.is_expired,
447 447
             'remark': self.remark,
448
+            'identity_card_name': self.identity_card_name,
449
+            'identity_card_number': self.identity_card_number,
448 450
             'created_at': tc.local_string(utc_dt=self.created_at),
449 451
         }
450 452
 

+ 4 - 0
api/lensman_admin_views.py

@@ -88,6 +88,8 @@ def lensman_update(request, administrator):
88 88
     name = request.POST.get('name', '')
89 89
     phone = request.POST.get('phone', '')
90 90
     remark = request.POST.get('remark', '')
91
+    identity_card_name = request.POST.get('identity_card_name', '')
92
+    identity_card_number = request.POST.get('identity_card_number', '')
91 93
 
92 94
     try:
93 95
         lensman = LensmanInfo.objects.get(lensman_id=lensman_id, status=True)
@@ -101,6 +103,8 @@ def lensman_update(request, administrator):
101 103
     lensman.name = name
102 104
     lensman.phone = phone
103 105
     lensman.remark = remark
106
+    lensman.identity_card_name = identity_card_name
107
+    lensman.identity_card_number = identity_card_number
104 108
 
105 109
     lensman.save()
106 110