feat: регистрация продавца (FR-01) + палитра B (зелёный/янтарь)

This commit is contained in:
apuc committed 2026-09-23 18:28:45 +03:00
1 parent 43ac518fc2
commit c681c724a5
12 files changed
+335 -8

No files matched your search

@@ -0,0 +1,23 @@
# Generated by Django 5.1.15 on 2026-09-23 15:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='brand',
name='production_photo',
field=models.ImageField(blank=True, null=True, upload_to='brands/verification/', verbose_name='Фото производства'),
),
migrations.AddField(
model_name='brand',
name='statement_doc',
field=models.FileField(blank=True, null=True, upload_to='brands/verification/', verbose_name='Выписка/справка'),
),
]
+8
View File
@@ -83,6 +83,14 @@ class Brand(models.Model):
'Статус верификации', max_length=20,
choices=VerificationStatus.choices, default=VerificationStatus.PENDING,
)
production_photo = models.ImageField(
'Фото производства', upload_to='brands/verification/',
blank=True, null=True,
)
statement_doc = models.FileField(
'Выписка/справка', upload_to='brands/verification/',
blank=True, null=True,
)
badges = models.JSONField('Знаки', default=list, blank=True)
rating = models.DecimalField('Рейтинг', max_digits=3, decimal_places=2, default=0)