Hi,
Is it possible to override the default widgets generated by an
inlineformset_factory?
I have a couple of models and an inlineformset_factory to generate a
form for the "child" of the pair - which is all well and good, but the
text fields that it produces are too large to fit on the screen.
Surely this should be simple??
I tried passing a form, thus:
companycontactformsetfactory = inlineformset_factory(Company,
CompanyContact, exclude=('company',), max_num=5, extra=2,
form=CompanyContactForm)
companycontactformset = companycontactformsetfactory(instance =
company)
But if I specify Meta/widgets in the form ("CompanyContactForm"), I
get an error.
Huge thanks if anyone can help - this is driving me nuts..!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.