From ce1871a727bf6e21b0a9974fccd3a98ae53e836a Mon Sep 17 00:00:00 2001 From: vickytechkey Date: Sun, 4 Oct 2026 16:37:01 +0530 Subject: [PATCH] feat: add SupplierProfile, Product, Wallet, and WalletTransaction models to seller_models --- seller_models/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seller_models/models.py b/seller_models/models.py index bf45063..a7cd71e 100644 --- a/seller_models/models.py +++ b/seller_models/models.py @@ -33,7 +33,7 @@ class SupplierProfile(models.Model): return "" class Product(models.Model): - supplier = models.ForeignKey(SupplierProfile, on_delete=models.DO_NOTHING, db_column='supplier_id') + supplier = models.ForeignKey(SupplierProfile, on_delete=models.DO_NOTHING, db_column='supplier_id', to_field='user_id', null=True, blank=True) title = models.CharField(max_length=255) category = models.CharField(max_length=100, blank=True, null=True) price = models.DecimalField(max_digits=10, decimal_places=2)