Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

fix bug to add category image for admin dashboard #13

Merged
merged 1 commit into from
Oct 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions shopyo/modules/resource/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ class Resource(db.Model):

#
product_id = db.Column(db.Integer, db.ForeignKey('product.id'),
nullable=False)
nullable=True)
category_id = db.Column(db.Integer, db.ForeignKey('categories.id'),
nullable=False)
subcategory_id = db.Column(db.Integer, db.ForeignKey('subcategories.id'),
nullable=False)
nullable=True)

def insert(self):
db.session.add(self)
Expand Down