#17416: inlineformset_factory doesn't allow the widgets argument --------------------------------------+------------------------ Reporter: jacob | Owner: nobody Type: Bug | Status: new Component: Forms | Version: 1.3 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | --------------------------------------+------------------------ `modelformset_factory` supports a `widgets` argument for specifying custom widgets in the created forms, so I expected `inlineformset_factory` to do the same. That is, I tried this:
{{{ ChoiceFormset = inlineformset_factory(Poll, Choice, widgets = {'order': forms.HiddenInput}) }}} No dice: `inlineformset_factory() got an unexpected keyword argument 'widgets'`. I think this is just a simple omission since `inlineformset_factory` is a thin wrapper over `modelformset_factory` but I haven't investigated the history to see if this argument was an intentional or unintentional omission. -- Ticket URL: <https://code.djangoproject.com/ticket/17416> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.