mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix related name
This commit is contained in:
parent
54b1ccd585
commit
0e29f9b88c
19
InvenTree/order/migrations/0003_auto_20190604_2226.py
Normal file
19
InvenTree/order/migrations/0003_auto_20190604_2226.py
Normal file
@ -0,0 +1,19 @@
|
||||
# Generated by Django 2.2 on 2019-06-04 12:26
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('order', '0002_auto_20190604_2224'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='purchaseorder',
|
||||
name='supplier',
|
||||
field=models.ForeignKey(help_text='Company', limit_choices_to={'is_supplier': True}, on_delete=django.db.models.deletion.CASCADE, related_name='purchase_orders', to='company.Company'),
|
||||
),
|
||||
]
|
@ -68,7 +68,7 @@ class PurchaseOrder(Order):
|
||||
limit_choices_to={
|
||||
'is_supplier': True,
|
||||
},
|
||||
related_name=_('Orders'),
|
||||
related_name='purchase_orders',
|
||||
help_text=_('Company')
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user