@any_form_field.decorator
def field_choices_attibute(function):
    def _wrapper(field, **kwargs):
        if hasattr(field.widget, 'choices'):
            return random.choice(list(valid_choices(field.widget.choices)))
        return function(field, **kwargs)

    return _wrapper
Async version of get().
dataset/ETHPy150Open kmmbvnr/django-any/django_any/forms.py/field_choices_attibute--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/ndb/blobstore.py/BlobInfo.get_async