Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListComp Call AttributeLoad SubscriptLoad NameLoad Index Str attr comprehension NameStore NameLoad CompareIn Str NameLoad For NameStore NameLoad body If CompareGt Call AttributeLoad NameLoad attr NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Raise Call NameLoad Call AttributeLoad Str attr Call NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Dict Str Call NameLoad Str Assign NameStore Call NameLoad keyword NameLoad keyword Dict Str Str Call NameLoad Str Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Call AttributeLoad NameLoad attr Str ListLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Call NameLoad Str attr Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Return AttributeLoad NameLoad attr orelse Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad NameLoad attr Str keyword IfExp NameLoad Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Return Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore Call AttributeLoad NameLoad attr ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad NameLoad attr Return Call NameLoad Dict Str NameLoad decorator_list NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults vararg kwarg body If Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call NameLoad Str attr Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad NameLoad orelse Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A json django.contrib messages django.core.exceptions ValidationError django.core.validators validate_slug django.utils.translation ugettext _ ugettext_lazy django forms corehq.toggles MULTIPLE_CHOICE_CUSTOM_FIELD dimagi.utils.decorators.memoized memoized models CustomDataFieldsDefinition CustomDataField validate_reserved_words CustomDataFieldsForm N/A N/A forms Form N/A N/A 
    The main form for editing a custom data definition
     N/A data_fields N/A N/A forms CharField widget N/A forms HiddenInput verify_no_duplicates N/A N/A self data_fields N/A N/A N/A errors N/A set N/A slugs N/A N/A N/A N/A field N/A slug lower N/A field data_fields N/A slug field N/A slug slugs N/A N/A N/A N/A N/A slugs count slug 1 N/A N/A N/A N/A errors add N/A N/A N/A _ Key '{}' was duplicated, key names must be unique. format slug N/A errors N/A clean_data_fields N/A N/A self N/A N/A N/A raw_data_fields N/A N/A json loads N/A N/A self cleaned_data N/A data_fields N/A errors N/A set N/A data_fields N/A N/A raw_data_field raw_data_fields N/A N/A data_field_form N/A CustomDataFieldForm raw_data_field N/A N/A N/A data_field_form is_valid N/A N/A N/A data_fields append N/A data_field_form cleaned_data N/A N/A data_field_form errors N/A N/A N/A N/A errors update N/A N/A error N/A 0 N/A error N/A N/A N/A data_field_form errors values N/A N/A N/A errors update N/A N/A self verify_no_duplicates data_fields N/A errors N/A N/A N/A ValidationError N/A N/A <br/> join N/A sorted errors N/A data_fields N/A N/A XmlSlugField N/A N/A forms SlugField N/A N/A default_validators N/A validate_slug validate_reserved_words N/A CustomDataFieldForm N/A N/A forms Form N/A N/A 
    Sub-form for editing an individual field's definition.
     N/A label N/A N/A forms CharField required True error_messages N/A required N/A ugettext_lazy All fields are required N/A slug N/A XmlSlugField required True error_messages N/A required invalid N/A ugettext_lazy All fields are required N/A ugettext_lazy Key fields must consist only of letters, numbers, underscores or hyphens. N/A is_required N/A N/A forms BooleanField required False N/A choices N/A N/A forms CharField widget N/A forms HiddenInput required False N/A is_multiple_choice N/A N/A forms BooleanField required False __init__ N/A N/A self raw N/A args kwargs N/A N/A N/A self _raw_choices N/A filter None N/A N/A raw get choices N/A N/A N/A N/A N/A super CustomDataFieldForm self __init__ raw args kwargs N/A clean_choices N/A N/A self N/A N/A N/A N/A self _raw_choices N/A N/A CustomDataModelMixin N/A object N/A N/A 
    Provides the interface for editing the ``CustomDataFieldsDefinition``
    for each entity type.
    Each entity type must provide a subclass of this mixin.
     N/A urlname None N/A template_name custom_data_fields/bootstrap2/custom_data_fields.html N/A field_type None N/A entity_string None get_validator N/A N/A cls domain N/A N/A N/A data_model N/A N/A CustomDataFieldsDefinition get_or_create domain N/A cls field_type N/A N/A N/A data_model get_validator cls N/A classmethod page_name N/A N/A cls N/A N/A N/A N/A N/A N/A _ Edit {} Fields format N/A unicode N/A cls entity_string N/A classmethod get_definition N/A N/A self N/A N/A N/A N/A N/A CustomDataFieldsDefinition get_or_create N/A self domain N/A self field_type N/A get_custom_fields N/A N/A self N/A N/A N/A definition N/A N/A self get_definition N/A definition N/A N/A N/A definition fields N/A N/A N/A N/A save_custom_fields N/A N/A self N/A N/A N/A definition N/A N/A N/A self get_definition N/A CustomDataFieldsDefinition N/A N/A definition field_type N/A self field_type N/A N/A definition domain N/A self domain N/A N/A definition fields N/A N/A N/A self get_field field N/A field N/A N/A N/A self form cleaned_data N/A data_fields N/A N/A N/A definition save N/A get_field N/A N/A self field N/A N/A N/A multiple_choice_enabled N/A N/A MULTIPLE_CHOICE_CUSTOM_FIELD enabled N/A self domain N/A N/A CustomDataField slug N/A N/A field get slug is_required N/A N/A field get is_required label N/A N/A field get label choices N/A N/A field get choices is_multiple_choice N/A multiple_choice_enabled N/A N/A field get is_multiple_choice False N/A page_context N/A N/A self N/A N/A N/A N/A custom_fields custom_fields_form N/A N/A json loads N/A N/A N/A self form data N/A data_fields N/A self form N/A property form N/A N/A self N/A N/A N/A N/A N/A N/A self request method POST N/A N/A N/A CustomDataFieldsForm N/A N/A self request POST N/A N/A serialized N/A N/A json dumps N/A N/A N/A field to_json N/A field N/A N/A self get_custom_fields N/A N/A CustomDataFieldsForm N/A data_fields serialized N/A property memoized post N/A N/A self request N/A args kwargs N/A N/A N/A N/A N/A self form is_valid N/A N/A N/A N/A self save_custom_fields N/A msg N/A N/A N/A _ {} fields saved successfully format N/A unicode N/A self entity_string N/A N/A N/A messages success request msg N/A N/A N/A self get request success True args kwargs N/A N/A N/A N/A self get request args kwargs N/A N/A