Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
8be3e3c990
@ -157,12 +157,15 @@ class Drafts(LoginRequiredMixin, View):
|
|||||||
for k in ['official_project_documents', 'other_documents',
|
for k in ['official_project_documents', 'other_documents',
|
||||||
'shapefiles']:
|
'shapefiles']:
|
||||||
|
|
||||||
items = list(filter(
|
try:
|
||||||
lambda x: (
|
items = list(filter(
|
||||||
x['name'] == '{0}_files'.format(k)
|
lambda x: (
|
||||||
and x['value'] != ''
|
x['name'] == '{0}_files'.format(k)
|
||||||
), data['data']['form']
|
and x['value'] != ''
|
||||||
))
|
), data['data']['form']
|
||||||
|
))
|
||||||
|
except KeyError:
|
||||||
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
items = items[0]['value'].split(',')
|
items = items[0]['value'].split(',')
|
||||||
|
Loading…
Reference in New Issue
Block a user