mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 13:06:45 +00:00
fix migrations
This commit is contained in:
parent
0c72fa180c
commit
58901a8cf6
@ -1,18 +0,0 @@
|
|||||||
# Generated by Django 3.2.12 on 2022-03-29 22:46
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('company', '0042_supplierpricebreak_updated'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AddField(
|
|
||||||
model_name='company',
|
|
||||||
name='is_deleted',
|
|
||||||
field=models.BooleanField(default=False, help_text='Is this company a deleted placeholder?', verbose_name='is deleted'),
|
|
||||||
),
|
|
||||||
]
|
|
@ -0,0 +1,20 @@
|
|||||||
|
# Generated by Django 3.2.13 on 2022-04-30 22:11
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import django.db.models.deletion
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('company', '0042_supplierpricebreak_updated'),
|
||||||
|
('order', '0063_alter_purchaseorderlineitem_unique_together'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='purchaseorder',
|
||||||
|
name='supplier',
|
||||||
|
field=models.ForeignKey(help_text='Company from which the items are being ordered', limit_choices_to={'is_supplier': True}, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='purchase_orders', to='company.company', verbose_name='Supplier'),
|
||||||
|
),
|
||||||
|
]
|
@ -1,25 +0,0 @@
|
|||||||
# Generated by Django 3.2.12 on 2022-03-29 22:46
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
import order.models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('company', '0043_company_is_deleted'),
|
|
||||||
('order', '0063_alter_purchaseorderlineitem_unique_together'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='purchaseorder',
|
|
||||||
name='supplier',
|
|
||||||
field=models.ForeignKey(help_text='Company from which the items are being ordered', limit_choices_to={'is_supplier': True}, on_delete=models.SET(order.models.get_deleted_company), related_name='purchase_orders', to='company.company', verbose_name='Supplier'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='salesorder',
|
|
||||||
name='customer',
|
|
||||||
field=models.ForeignKey(help_text='Company to which the items are being sold', limit_choices_to={'is_customer': True}, null=True, on_delete=models.SET(order.models.get_deleted_company), related_name='sales_orders', to='company.company', verbose_name='Customer'),
|
|
||||||
),
|
|
||||||
]
|
|
Loading…
x
Reference in New Issue
Block a user