From: Marcin Koziej Date: Thu, 9 Aug 2012 15:17:01 +0000 (+0200) Subject: filter empty admin emails X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/8775731643fbbd274ebc14714abb60d609bd9219?ds=sidebyside filter empty admin emails --- diff --git a/apps/oai/handlers.py b/apps/oai/handlers.py index d098a64ad..70e78c5fb 100644 --- a/apps/oai/handlers.py +++ b/apps/oai/handlers.py @@ -59,7 +59,7 @@ class Catalogue(common.ResumptionOAIPMH): earliest_change or earliest_delete # admins - self.admin_emails = [u.email for u in User.objects.filter(is_superuser=True)] + self.admin_emails = [u.email for u in User.objects.filter(is_superuser=True).exclude(email__exact=u'')] def metadata(self, book): xml = etree.parse(book.xml_file)