def get_context_data(self, **kwargs):
        data = super(MailListView, self).get_context_data(**kwargs)
        mail_list = []

        for mail_name, mail_class in sorted(factory._registry.items(),
                                            key=lambda x: x[0]):
            mail_list.append((mail_name, mail_class.__name__))
        data['mail_map'] = mail_list
        return data
Return object_list.
dataset/ETHPy150Open novafloss/django-mail-factory/mail_factory/views.py/MailListView.get_context_data