update

FFIB 2 weken geleden
bovenliggende
commit
9940309d3b
2 gewijzigde bestanden met toevoegingen van 26 en 1 verwijderingen
  1. 22 0
      account/migrations/0067_auto_20260317_1842.py
  2. 4 1
      account/models.py

+ 22 - 0
account/migrations/0067_auto_20260317_1842.py

@@ -0,0 +1,22 @@
1
+# Generated by Django 3.2.16 on 2026-03-17 10:42
2
+
3
+from django.db import migrations, models
4
+
5
+
6
+class Migration(migrations.Migration):
7
+
8
+    dependencies = [
9
+        ('account', '0066_lensmaninfo_is_tmp_popup'),
10
+    ]
11
+
12
+    operations = [
13
+        migrations.RemoveField(
14
+            model_name='lensmaninfo',
15
+            name='is_tmp_popup',
16
+        ),
17
+        migrations.AddField(
18
+            model_name='userinfo',
19
+            name='is_tmp_popup',
20
+            field=models.BooleanField(default=False, help_text='是否临时弹窗', verbose_name='is_tmp_popup'),
21
+        ),
22
+    ]

+ 4 - 1
account/models.py

@@ -159,6 +159,8 @@ class UserInfo(BaseModelMixin, LensmanTypeBoolMixin):
159 159
     # 租用镜头权限
160 160
     tenancy_shot_permission = models.BooleanField(_(u'tenancy_shot_permission'), default=False, help_text=u'租用镜头权限')
161 161
 
162
+    is_tmp_popup = models.BooleanField(_(u'is_tmp_popup'), default=False, help_text=u'是否临时弹窗')
163
+
162 164
     class Meta:
163 165
         verbose_name = _(u'userinfo')
164 166
         verbose_name_plural = _(u'userinfo')
@@ -275,6 +277,8 @@ class UserInfo(BaseModelMixin, LensmanTypeBoolMixin):
275 277
             # 摄影师
276 278
             'is_lensman': bool(self.lensmaninfo),
277 279
             'lensman_info': self.lensmaninfo,
280
+
281
+            'is_tmp_popup': self.is_tmp_popup,
278 282
         }
279 283
 
280 284
     def brand_qydata(self, brand_id=None):
@@ -405,7 +409,6 @@ class LensmanInfo(BaseModelMixin):
405 409
     identity_card_number = models.CharField(_(u'identity_card_number'), max_length=32, blank=True, null=True, help_text=u'身份证号')
406 410
     identity_card_name = models.CharField(_(u'identity_card_name'), max_length=32, blank=True, null=True, help_text=u'身份证姓名')
407 411
 
408
-    is_tmp_popup = models.BooleanField(_(u'is_tmp_popup'), default=False, help_text=u'是否临时弹窗')
409 412
 
410 413
     class Meta:
411 414
         verbose_name = _(u'LensmanInfo')