Migration fix

This commit is contained in:
Oliver 2018-04-19 08:31:31 +10:00
parent 433f670e1c
commit 3bb434ae98
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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,