magopian/django-data-exports — pull request #8 by tuky (2014-01-17 11:09:18+00:00)
Title: Handle DoesNotExist (and others)

getattr(model, element, None) can raise a related.model.DoesNotExist. Better to return None.