@classmethod
def get_choices_for(cls, model, type_names=None):
    return [(attribute.name, attribute) for attribute in cls.get_for(model, type_names)]
@classmethod
def get_choices_for(cls, model, type_names=None):
    return [(attribute.name, attribute) for attribute in cls.get_for(model, type_names)]