summaryrefslogtreecommitdiff
path: root/opendc/models/model.py
diff options
context:
space:
mode:
Diffstat (limited to 'opendc/models/model.py')
-rw-r--r--opendc/models/model.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/opendc/models/model.py b/opendc/models/model.py
index 30da9c67..44e4faf8 100644
--- a/opendc/models/model.py
+++ b/opendc/models/model.py
@@ -121,7 +121,7 @@ class Model(object):
"""Generate a SQLite updatable columns string for this Model."""
return ', '.join(
- ['{} = %s'.format(x) for x in cls.COLUMNS if not x in cls.COLUMNS_PRIMARY_KEY]
+ ['{} = %s'.format(x) for x in cls.COLUMNS if x not in cls.COLUMNS_PRIMARY_KEY]
)
# SQL TUPLE GENERATION METHODS
@@ -151,7 +151,7 @@ class Model(object):
value_list = []
- for column in [x for x in self.COLUMNS if not x in self.COLUMNS_PRIMARY_KEY]:
+ for column in [x for x in self.COLUMNS if x not in self.COLUMNS_PRIMARY_KEY]:
value_list.append(getattr(self, column, None))
return tuple(value_list)