<s> def get_by_domain_and_type ( domain , field_type ) : <EOL> from corehq . apps . custom_data_fields . models import CustomDataFieldsDefinition <EOL> return CustomDataFieldsDefinition . view ( <EOL> '<STR_LIT>' , <EOL> key = [ domain , field_type ] , <EOL> include_docs = True , <EOL> reduce = False , <EOL> limit = <NUM_LIT:1> , <EOL> ) . one ( ) </s>
