diff options
Diffstat (limited to 'core/models.py')
| -rw-r--r-- | core/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/models.py b/core/models.py index dce67cf..db8b4c1 100644 --- a/core/models.py +++ b/core/models.py @@ -31,7 +31,7 @@ class Product(models.Model): unit = models.CharField(max_length=20) price = models.DecimalField(max_digits=20, decimal_places=2) manufacturer = models.CharField(max_length=200) - supplier = models.CharField(max_length=200) + supplier = models.ForeignKey(Supplier, on_delete=models.SET_NULL, null=True, blank=True) category = models.CharField(max_length=100) discount = models.DecimalField(max_digits=5, decimal_places=2, default=0) quantity = models.IntegerField(default=0) |
