def conv_ForeignKey(self, model, field, kwargs): return ModelSelectField(model=field.rel.to, **kwargs)
class F(Form): a = ModelSelectField(model=test_models.Group, widget=lazy_select)
def conv_ForeignKey(self, model, field, kwargs): return ModelSelectField(widget=form.ChosenSelectWidget(), model=field.rel.to, **kwargs)