How to render a text box instead of a select box when using model form set

Posted by iHeartDucks on Stack Overflow See other posts from Stack Overflow or by iHeartDucks
Published on 2010-06-12T18:48:16Z Indexed on 2010/06/12 18:52 UTC
Read the original article Hit count: 252

Filed under:
|

Hi,

When I render my formset, one of the field renders as a select box because it is a foreign field in the model. Is there a way to change this to a text input? I want to populate that field by using Ajax auto complete. Adding a widget to the modelform is not working because the modelformset_factory takes a model and not a model form.

© Stack Overflow or respective owner

Related posts about django

Related posts about django-formsets