Fix related name

This commit is contained in:
Oliver Walters 2019-06-04 22:26:40 +10:00
parent 54b1ccd585
commit 0e29f9b88c
2 changed files with 20 additions and 1 deletions

View 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'),
),
]

View File

@ -68,7 +68,7 @@ class PurchaseOrder(Order):
limit_choices_to={
'is_supplier': True,
},
related_name=_('Orders'),
related_name='purchase_orders',
help_text=_('Company')
)