def METHOD_NAME():
    county_list = [county.fips for county in County.objects.filter(valid=True)]
    msa_list = [msa.fips for msa in MetroArea.objects.filter(valid=True)]
    state_list = [
        state.fips for state in State.objects.exclude(fips__in=NON_STATE_FIPS)
    ]
    non_msa_list = [
        "{}-non".format(state.fips)
        for state in State.objects.filter(fips__in=state_list)
        if state.non_msa_valid is True
    ]
    final_list = (
        sorted(county_list)
        + sorted(msa_list)
        + sorted(state_list)
        + sorted(non_msa_list)
    )
    allowlist = MortgageMetaData.objects.get(name="allowlist")
    allowlist.json_value = final_list
    allowlist.save()