Add 'bot_banner' field to ProductModel and create BotProductDetailView for bot integration

This commit is contained in:
Parsa Nazer
2025-08-05 00:13:47 +03:30
parent d9b6655ee8
commit e9b1666423
5 changed files with 34 additions and 5 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ class ProductModel(models.Model):
related_products = models.ManyToManyField('self', blank=True, verbose_name='محصولات مرتبط')
shop = models.ForeignKey('account.ShopModel', on_delete=models.CASCADE, related_name='products', verbose_name='فروشگاه', blank=True, null=True)
show_in_bot = models.BooleanField(default=False, verbose_name='نمایش در ربات')
bot_banner = models.TextField(null=True, blank=True, verbose_name='بنر ربات')
def __str__(self):
return self.name