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

Commit

Permalink
Merge pull request #13 from taanguyen/fix-add-category-dashboard-img
Browse files Browse the repository at this point in the history
fix bug to add category image for admin dashboard
  • Loading branch information
Abdur-rahmaanJ committed Oct 22, 2021
2 parents 96086c6 + 922ee82 commit e5164e1
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit e5164e1

Please sign in to comment.