def enum_types(self, order=None, customer=None): for typ, name in get_backend_choices(): yield self, PaymentType(typ=typ, name=name)
def enum_types(self, order=None, customer=None): return get_backend_choices()