@@ -104,6 +104,16 @@ def shot_update(request, administrator):  | 
            ||
| 104 | 104 | 
                 | 
            
| 105 | 105 | 
                @logit  | 
            
| 106 | 106 | 
                @check_admin  | 
            
| 107 | 
                +def shot_delete(request, administrator):  | 
            |
| 108 | 
                +    shot_id = request.POST.get('shot_id', '')
               | 
            |
| 109 | 
                +  | 
            |
| 110 | 
                + TenancyShotInfo.objects.filter(shot_id=shot_id).update(admin_id=admin_id, status=False)  | 
            |
| 111 | 
                +  | 
            |
| 112 | 
                + return response()  | 
            |
| 113 | 
                +  | 
            |
| 114 | 
                +  | 
            |
| 115 | 
                +@logit  | 
            |
| 116 | 
                +@check_admin  | 
            |
| 107 | 117 | 
                def shot_request_list(request, administrator):  | 
            
| 108 | 118 | 
                     page = request.POST.get('page', 1)
               | 
            
| 109 | 119 | 
                     num = request.POST.get('num', 20)
               | 
            
                @@ -16,6 +16,7 @@ class TenancyShotInfo(BaseModelMixin):  | 
            ||
| 16 | 16 | 
                (1, u'已租'),  | 
            
| 17 | 17 | 
                )  | 
            
| 18 | 18 | 
                 | 
            
| 19 | 
                + admin_id = models.CharField(_(u'admin_id'), max_length=32, blank=True, null=True, help_text=u'经手人唯一标识', db_index=True)  | 
            |
| 19 | 20 | 
                shot_id = ShortUUIDField(_(u'shot_id'), max_length=32, blank=True, null=True, help_text=u'镜头唯一标识', db_index=True, unique=True)  | 
            
| 20 | 21 | 
                model_id = models.CharField(_(u'model_id'), max_length=32, blank=True, null=True, help_text=u'型号唯一标识', db_index=True)  | 
            
| 21 | 22 | 
                model_name = models.CharField(_(u'model_name'), max_length=255, blank=True, null=True, help_text=u'型号名称')  |