mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Migration fix
This commit is contained in:
parent
433f670e1c
commit
3bb434ae98
@ -16,6 +16,6 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='stockitem',
|
model_name='stockitem',
|
||||||
name='customer',
|
name='customer',
|
||||||
field=models.ForeignKey(blank=True, help_text='Item assigned to customer?', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='stockitems', to='customer.Customer'),
|
field=models.ForeignKey(blank=True, help_text='Item assigned to customer?', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='stockitems', to='supplier.Supplier'),
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
@ -83,9 +83,9 @@ class StockItem(models.Model):
|
|||||||
|
|
||||||
# TODO - Point to a Company object instead
|
# TODO - Point to a Company object instead
|
||||||
# The StockItem may be assigned to a particular customer
|
# The StockItem may be assigned to a particular customer
|
||||||
#customer = models.ForeignKey(Customer, on_delete=models.SET_NULL,
|
customer = models.ForeignKey('supplier.Supplier', on_delete=models.SET_NULL,
|
||||||
# related_name='stockitems', blank=True, null=True,
|
related_name='stockitems', blank=True, null=True,
|
||||||
# help_text='Item assigned to customer?')
|
help_text='Item assigned to customer?')
|
||||||
|
|
||||||
# Optional serial number
|
# Optional serial number
|
||||||
serial = models.PositiveIntegerField(blank=True, null=True,
|
serial = models.PositiveIntegerField(blank=True, null=True,
|
||||||
|
Loading…
Reference in New Issue
Block a user