Files
ProdMan/bom_manager/migrations/0008_item_material_item_weight.py
ackFromRedmi 785fed4b7f
All checks were successful
Auto-Deploy-prodman / deploy (push) Successful in 6s
Связал склад и спецификацию
2026-02-16 08:15:44 +03:00

26 lines
927 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Generated by Django 6.0.2 on 2026-02-16 05:14
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bom_manager', '0007_alter_baseoperation_options'),
('stock', '0002_gost_alter_basematerial_grade_and_more'),
]
operations = [
migrations.AddField(
model_name='item',
name='material',
field=models.ForeignKey(blank=True, help_text='Выберите тип заготовки для этой детали', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='items', to='stock.basematerial', verbose_name='Материал заготовки'),
),
migrations.AddField(
model_name='item',
name='weight',
field=models.FloatField(blank=True, default=0, null=True, verbose_name='Вес'),
),
]