def choices_from_dict(source, prepend_blank=True):
    choices = []

    if prepend_blank:
        choices.append(('', _('Please select one...')))

    for key, value in source.iteritems():
        pair = (key, value)
        choices.append(pair)

    return choices
Convert a dict to a format that's compatible with WTForm's choices. It also
dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/catwatch/lib/util_wtforms.py/choices_from_dict