From 83090741d6b206d88cc02b6538aec5deace4cb34 Mon Sep 17 00:00:00 2001 From: Justin Littman Date: Wed, 25 Jul 2018 12:18:25 -0400 Subject: [PATCH] refs #941. Ignores orpaned exports. --- sfm/ui/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sfm/ui/views.py b/sfm/ui/views.py index 807a25ae..5dc5fa52 100644 --- a/sfm/ui/views.py +++ b/sfm/ui/views.py @@ -838,7 +838,8 @@ def get_context_data(self, **kwargs): for export in exports: seeds = list(export.seeds.all()) collection = seeds[0].collection if seeds else export.collection - export_list.append((collection.collection_set, collection, export)) + if collection: + export_list.append((collection.collection_set, collection, export)) context['export_list'] = export_list return context