fix Metadata.edit

This commit is contained in:
j 2016-01-21 21:40:10 +05:30
parent e8e2535913
commit a95277e0ba

View file

@ -423,7 +423,7 @@ class Metadata(db.Model):
if commit:
state.db.session.commit()
def edit(self, data, commit=True, modified=True):
def edit(self, data, commit=True, modified=None):
changes = {}
if 'isbn' in data and isinstance(data['isbn'], list):
isbns = [utils.to_isbn13(isbn) for isbn in data['isbn']]