add send to bottom property

This commit is contained in:
Martin
2016-06-03 10:42:50 +02:00
parent c5c237be4c
commit ff9b8fefa9
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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,