add the exclude_from_overview property to designers

This commit is contained in:
Martin
2016-06-09 14:20:37 +02:00
parent 04216e16e8
commit 7bf8afdb01
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -25,6 +25,12 @@ class Designer(db.Model):
return 1
return 0
@property
def exclude_from_overview(self):
if self.visible_list == 1:
return 0
return 1
def to_json(self):
return {
'commission': self.commission,