Wrestling with Citations with no sources
svn: r19668
This commit is contained in:
parent
7b97bef883
commit
82dde838e9
@ -359,12 +359,17 @@ class DjangoInterface(object):
|
||||
media_list = self.get_media_list(citation)
|
||||
datamap = self.get_citation_datamap(citation)
|
||||
date = self.get_date(citation)
|
||||
# I guess citations can have no source
|
||||
if citation.source:
|
||||
handle = citation.source.handle
|
||||
else:
|
||||
handle = None
|
||||
return (str(citation.handle),
|
||||
citation.gramps_id,
|
||||
date,
|
||||
citation.page,
|
||||
citation.confidence,
|
||||
citation.source.handle,
|
||||
handle,
|
||||
note_list,
|
||||
media_list,
|
||||
datamap,
|
||||
|
Loading…
Reference in New Issue
Block a user