Prevent server error on homepage after approved editor deletes account
@@ -105,7 +105,8 @@ class HomePageView(TemplateView):
# New access grants!
grants = self._get_newest(Application.objects.filter(
- status=Application.APPROVED, date_closed__isnull=False))
+ status=Application.APPROVED, date_closed__isnull=False).exclude(
+ editor=None))
for grant in grants:
event = {}
