Re: [Django] #17416: inlineformset_factory doesn't allow the widgets argument

2013-01-23 Thread Django
#17416: inlineformset_factory doesn't allow the widgets argument
+-
 Reporter:  jacob   |Owner:  slurms
 Type:  Bug |   Status:  closed
Component:  Forms   |  Version:  master
 Severity:  Normal  |   Resolution:  fixed
 Keywords:  | Triage Stage:  Ready for checkin
Has patch:  1   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+-
Changes (by Claude Paroz ):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"93e79b45bc5288d1ca0eb5b6eade30d3c7110b24"]:
 {{{
 #!CommitTicketReference repository=""
 revision="93e79b45bc5288d1ca0eb5b6eade30d3c7110b24"
 Fixed #17416 -- Added widgets argument to inlineformset_factory and
 modelformset_factory
 }}}

-- 
Ticket URL: 
Django 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #17416: inlineformset_factory doesn't allow the widgets argument

2013-01-20 Thread Django
#17416: inlineformset_factory doesn't allow the widgets argument
+-
 Reporter:  jacob   |Owner:  slurms
 Type:  Bug |   Status:  assigned
Component:  Forms   |  Version:  master
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Ready for checkin
Has patch:  1   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+-
Changes (by wim@…):

 * stage:  Accepted => Ready for checkin


-- 
Ticket URL: 
Django 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #17416: inlineformset_factory doesn't allow the widgets argument

2013-01-11 Thread Django
#17416: inlineformset_factory doesn't allow the widgets argument
+
 Reporter:  jacob   |Owner:  slurms
 Type:  Bug |   Status:  assigned
Component:  Forms   |  Version:  master
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Accepted
Has patch:  1   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+
Changes (by slurms):

 * owner:  nobody => slurms
 * status:  new => assigned
 * has_patch:  0 => 1
 * version:  1.3 => master


Comment:

 Added code, tests and documentation into a similar ticket's (#19569) pull
 request here: https://github.com/django/django/pull/630.

-- 
Ticket URL: 
Django 
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 https://groups.google.com/groups/opt_out.




Re: [Django] #17416: inlineformset_factory doesn't allow the widgets argument

2012-03-13 Thread Django
#17416: inlineformset_factory doesn't allow the widgets argument
+
 Reporter:  jacob   |Owner:  nobody
 Type:  Bug |   Status:  new
Component:  Forms   |  Version:  1.3
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+

Comment (by anonymous):

 There is a work around for this bug/feature,
 1) Create a ModelForm with the requested widget
 2) Pass the ModelForm as form argument and voila, the widget works

 in models.py

 class SomeForm(ModelForm):
 class Meta:
 model = Something
 widgets = {
'level' : forms.Select(choices=SOME_CHOICES)
}


 in views.py

 SomeFormsetFactory = inlineformset_factory(Parent, Something,
 form=SomeForm)

-- 
Ticket URL: 
Django 
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.



Re: [Django] #17416: inlineformset_factory doesn't allow the widgets argument

2012-02-04 Thread Django
#17416: inlineformset_factory doesn't allow the widgets argument
+
 Reporter:  jacob   |Owner:  nobody
 Type:  Bug |   Status:  new
Component:  Forms   |  Version:  1.3
 Severity:  Normal  |   Resolution:
 Keywords:  | Triage Stage:  Accepted
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+
Changes (by lrekucki):

 * stage:  Unreviewed => Accepted


-- 
Ticket URL: 
Django 
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.



[Django] #17416: inlineformset_factory doesn't allow the widgets argument

2011-12-15 Thread Django
#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: 
Django 
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.