From b7bdd9da7a9e945eb9cbdbdd7f0ec97e5413c821 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 3 Jan 2016 23:33:19 +0530 Subject: [PATCH] store classification without primary id --- oml/item/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oml/item/models.py b/oml/item/models.py index 7d46f07..54a554c 100644 --- a/oml/item/models.py +++ b/oml/item/models.py @@ -239,7 +239,10 @@ class Item(db.Model): if commit: state.db.session.commit() - meta_keys = ('title', 'author', 'date', 'publisher', 'edition', 'language', 'description') + meta_keys = ( + 'title', 'author', 'date', 'publisher', 'edition', + 'language', 'description', 'classification' + ) def update_meta(self, data): update = False