allow empty publication date, also make sure test database uses charset utf8 or else tests will fail
parent
b9b99b4b34
commit
3b777f87aa
|
@ -81,7 +81,7 @@ def add_by_googlebooks_id(googlebooks_id, work=None):
|
|||
e.title = d.get('title')
|
||||
e.description = d.get('description')
|
||||
e.publisher = d.get('publisher')
|
||||
e.publication_date = d.get('publishedDate')
|
||||
e.publication_date = d.get('publishedDate', '')
|
||||
e.language = d.get('language')
|
||||
|
||||
for i in d.get('industryIdentifiers', []):
|
||||
|
|
|
@ -17,6 +17,7 @@ DATABASES = {
|
|||
'PASSWORD': '',
|
||||
'HOST': '',
|
||||
'PORT': '',
|
||||
'TEST_CHARSET': 'utf8',
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -99,4 +100,4 @@ FREEBASE_PASSWORD = ''
|
|||
CELERYD_HIJACK_ROOT_LOGGER = False
|
||||
|
||||
# a debug_toolbar setting
|
||||
INTERNAL_IPS = ('127.0.0.1',)
|
||||
INTERNAL_IPS = ('127.0.0.1',)
|
||||
|
|
|
@ -17,6 +17,7 @@ DATABASES = {
|
|||
'PASSWORD': 'jenkins',
|
||||
'HOST': 'jenkins.cboagmr25pjs.us-east-1.rds.amazonaws.com',
|
||||
'PORT': '',
|
||||
'TEST_CHARSET': 'utf8',
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue