Add ability to edit publish date

If a date is not set, default to “0101-01-01”
This commit is contained in:
Jonathan Rehm
2017-07-23 13:35:35 -07:00
parent cf7196ae5e
commit 04b04e200f
3 changed files with 190 additions and 168 deletions
+2
View File
@@ -230,6 +230,8 @@ class Data(Base):
class Books(Base):
__tablename__ = 'books'
DEFAULT_PUBDATE = "0101-01-01"
id = Column(Integer, primary_key=True)
title = Column(String)
sort = Column(String)