Fix os import and add media settings 6
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Generated by Django 5.2.10 on 2026-01-21 02:01
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('products', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='product',
|
||||
name='weight',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='description',
|
||||
field=models.TextField(default=1, verbose_name='Описание'),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='product',
|
||||
name='image',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='products/', verbose_name='Изображение'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='product',
|
||||
name='name',
|
||||
field=models.CharField(max_length=200, verbose_name='Название'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user