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