Add ShopModel and integrate with ProductModel

- Created ShopModel with fields for shop name, description, and user association.
- Updated ProductModel to include a foreign key relationship with ShopModel.
- Added admin interface for ShopModel with search functionality.
- Created migrations for ShopModel and its integration with ProductModel.
This commit is contained in:
Parsa Nazer
2025-08-02 18:57:46 +03:30
parent d955fcb107
commit d0dfa3eaa7
7 changed files with 115 additions and 4 deletions
+5
View File
@@ -107,6 +107,11 @@ UNFOLD = {
"link": reverse_lazy("admin:order_ordermodel_changelist"),
"badge": "utils.admin.admin_pending_count",
},
{
"title": _("فروشگاه ها"),
"icon": "storefront",
"link": reverse_lazy("admin:account_shopmodel_changelist"),
},
],
},