@@ -0,0 +1,3 @@  | 
            ||
| 1 | 
                +home = /Library/Developer/CommandLineTools/usr/bin  | 
            |
| 2 | 
                +include-system-site-packages = false  | 
            |
| 3 | 
                +version = 3.9.6  | 
            
                @@ -0,0 +1,20 @@  | 
            ||
| 1 | 
                +# -*- coding: utf-8 -*-  | 
            |
| 2 | 
                +  | 
            |
| 3 | 
                +# Generated by Django 3.2.16 on 2024-09-06 12:02  | 
            |
| 4 | 
                +  | 
            |
| 5 | 
                +from django.db import migrations, models  | 
            |
| 6 | 
                +  | 
            |
| 7 | 
                +  | 
            |
| 8 | 
                +class Migration(migrations.Migration):  | 
            |
| 9 | 
                +  | 
            |
| 10 | 
                + dependencies = [  | 
            |
| 11 | 
                +        ('account', '0064_auto_20240808_1559'),
               | 
            |
| 12 | 
                + ]  | 
            |
| 13 | 
                +  | 
            |
| 14 | 
                + operations = [  | 
            |
| 15 | 
                + migrations.AddField(  | 
            |
| 16 | 
                + model_name='lensmaninfo',  | 
            |
| 17 | 
                + name='lensman_type',  | 
            |
| 18 | 
                + field=models.IntegerField(choices=[(0, '小红书摄影师'), (1, '其他摄影师')], db_index=True, default=0, help_text='摄影师类型', verbose_name='lensman_type'),  | 
            |
| 19 | 
                + ),  | 
            |
| 20 | 
                + ]  | 
            
                @@ -370,6 +370,11 @@ class LensmanInfo(BaseModelMixin):  | 
            ||
| 370 | 370 | 
                ACTIVATED = 1  | 
            
| 371 | 371 | 
                DISABLED = 2  | 
            
| 372 | 372 | 
                 | 
            
| 373 | 
                + LENSMAN_TYPE = (  | 
            |
| 374 | 
                + (0, u'小红书摄影师'),  | 
            |
| 375 | 
                + (1, u'其他摄影师'),  | 
            |
| 376 | 
                + )  | 
            |
| 377 | 
                +  | 
            |
| 373 | 378 | 
                LENSMAN_STATUS = (  | 
            
| 374 | 379 | 
                (REFUSED, u'已拒绝'),  | 
            
| 375 | 380 | 
                (UNVERIFIED, u'未验证'),  | 
            
                @@ -388,6 +393,8 @@ class LensmanInfo(BaseModelMixin):  | 
            ||
| 388 | 393 | 
                 | 
            
| 389 | 394 | 
                lensman_status = models.IntegerField(_(u'lensman_status'), choices=LENSMAN_STATUS, default=UNVERIFIED, help_text=u'摄影师状态', db_index=True)  | 
            
| 390 | 395 | 
                 | 
            
| 396 | 
                + lensman_type = models.IntegerField(_(u'lensman_type'), choices=LENSMAN_TYPE, default=0, help_text=u'摄影师类型', db_index=True)  | 
            |
| 397 | 
                +  | 
            |
| 391 | 398 | 
                start_date = models.DateField(_(u'start_date'), blank=True, null=True, help_text=u'合作开始日期')  | 
            
| 392 | 399 | 
                end_date = models.DateField(_(u'end_date'), blank=True, null=True, help_text=u'合作截止日期')  | 
            
| 393 | 400 | 
                 | 
            
                @@ -430,6 +437,7 @@ class LensmanInfo(BaseModelMixin):  | 
            ||
| 430 | 437 | 
                'identity_card_number': self.identity_card_number,  | 
            
| 431 | 438 | 
                'is_expired': self.is_expired,  | 
            
| 432 | 439 | 
                'lensman_status': self.lensman_status,  | 
            
| 440 | 
                + 'lensman_type': self.lensman_type,  | 
            |
| 433 | 441 | 
                }  | 
            
| 434 | 442 | 
                 | 
            
| 435 | 443 | 
                @property  | 
            
                @@ -449,6 +457,7 @@ class LensmanInfo(BaseModelMixin):  | 
            ||
| 449 | 457 | 
                'remark': self.remark,  | 
            
| 450 | 458 | 
                'identity_card_name': self.identity_card_name,  | 
            
| 451 | 459 | 
                'identity_card_number': self.identity_card_number,  | 
            
| 460 | 
                + 'lensman_type': self.lensman_type,  | 
            |
| 452 | 461 | 
                'created_at': tc.local_string(utc_dt=self.created_at),  | 
            
| 453 | 462 | 
                }  | 
            
| 454 | 463 | 
                 | 
            
                @@ -90,6 +90,7 @@ def lensman_update(request, administrator):  | 
            ||
| 90 | 90 | 
                     remark = request.POST.get('remark', '')
               | 
            
| 91 | 91 | 
                     identity_card_name = request.POST.get('identity_card_name', '')
               | 
            
| 92 | 92 | 
                     identity_card_number = request.POST.get('identity_card_number', '')
               | 
            
| 93 | 
                +    lensman_type = request.POST.get('lensman_type', '')
               | 
            |
| 93 | 94 | 
                 | 
            
| 94 | 95 | 
                try:  | 
            
| 95 | 96 | 
                lensman = LensmanInfo.objects.get(lensman_id=lensman_id, status=True)  | 
            
                @@ -105,6 +106,7 @@ def lensman_update(request, administrator):  | 
            ||
| 105 | 106 | 
                lensman.remark = remark  | 
            
| 106 | 107 | 
                lensman.identity_card_name = identity_card_name  | 
            
| 107 | 108 | 
                lensman.identity_card_number = identity_card_number  | 
            
| 109 | 
                + lensman.lensman_type = lensman_type  | 
            |
| 108 | 110 | 
                 | 
            
| 109 | 111 | 
                lensman.save()  | 
            
| 110 | 112 | 
                 | 
            
                @@ -0,0 +1,21 @@  | 
            ||
| 1 | 
                +# -*- coding: utf-8 -*-  | 
            |
| 2 | 
                +  | 
            |
| 3 | 
                +# Generated by Django 3.2.16 on 2024-09-06 12:02  | 
            |
| 4 | 
                +  | 
            |
| 5 | 
                +from django.db import migrations  | 
            |
| 6 | 
                +import jsonfield.fields  | 
            |
| 7 | 
                +  | 
            |
| 8 | 
                +  | 
            |
| 9 | 
                +class Migration(migrations.Migration):  | 
            |
| 10 | 
                +  | 
            |
| 11 | 
                + dependencies = [  | 
            |
| 12 | 
                +        ('contract', '0002_auto_20240814_1821'),
               | 
            |
| 13 | 
                + ]  | 
            |
| 14 | 
                +  | 
            |
| 15 | 
                + operations = [  | 
            |
| 16 | 
                + migrations.AlterField(  | 
            |
| 17 | 
                + model_name='lensmancontributioncontractinfo',  | 
            |
| 18 | 
                + name='contract_content_fields',  | 
            |
| 19 | 
                + field=jsonfield.fields.JSONField(blank=True, help_text='合同内容字段', null=True, verbose_name='contract_content_fields'),  | 
            |
| 20 | 
                + ),  | 
            |
| 21 | 
                + ]  |