add send to bottom property
This commit is contained in:
@@ -19,6 +19,12 @@ class Designer(db.Model):
|
||||
visible_productpage = db.Column(db.Integer(), nullable=False, default=1)
|
||||
visible_search = db.Column(db.Integer(), nullable=False, default=1)
|
||||
|
||||
@property
|
||||
def send_to_bottom(self):
|
||||
if self.sort_desc:
|
||||
return 1
|
||||
return 0
|
||||
|
||||
def to_json(self):
|
||||
return {
|
||||
'commission': self.commission,
|
||||
|
||||
Reference in New Issue
Block a user