Protected US CSV export assignment against undefined property

remotes/origin/logger
Allister Antosik 2015-11-25 13:48:46 +00:00 committed by David Barragán Merino
parent 3ba759e5d1
commit 45f20b6e64
2 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@ people who have submitted patches, reported bugs, added translations, helped
answer newbie questions, and generally made taiga that much better:
- Alejandro Gómez <alejandro.gomez@kaleidos.net>
- Allister Antosik <me@allisterantosik.com>
- Alonso Torres <alonso.torres@kaleidos.net>
- Andrea Stagi <stagi.andrea@gmail.com>
- Andrés Moya <andres.moya@kaleidos.net>

View File

@ -153,8 +153,8 @@ def userstories_to_csv(project,queryset):
"subject": us.subject,
"description": us.description,
"milestone": us.milestone.name if us.milestone else None,
"owner": us.owner.username,
"owner_full_name": us.owner.get_full_name(),
"owner": us.owner.username if us.owner else None,
"owner_full_name": us.owner.get_full_name() if us.owner else None,
"assigned_to": us.assigned_to.username if us.assigned_to else None,
"assigned_to_full_name": us.assigned_to.get_full_name() if us.assigned_to else None,
"status": us.status.name,