Re: [Django] #19991: Introduce `saved_forms` property to `BaseModelFormSet`

2013-03-07 Thread Django
#19991: Introduce `saved_forms` property to `BaseModelFormSet`
-+--
 Reporter:  coolRR   |Owner:  nobody
 Type:  New feature  |   Status:  closed
Component:  Forms|  Version:  master
 Severity:  Normal   |   Resolution:  wontfix
 Keywords:   | Triage Stage:  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+--
Changes (by jacob):

 * status:  new => closed
 * needs_better_patch:   => 0
 * resolution:   => wontfix
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 This seems somewhat domain-specific; I can't see a good reason to include
 this in Django. If you think I'm missing something, please start a thread
 on django-dev and maybe explain a bit more about your motivation?

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[Django] #19991: Introduce `saved_forms` property to `BaseModelFormSet`

2013-03-05 Thread Django
#19991: Introduce `saved_forms` property to `BaseModelFormSet`
-+
 Reporter:  coolRR   |  Owner:  nobody
 Type:  New feature  | Status:  new
Component:  Forms|Version:  master
 Severity:  Normal   |   Keywords:
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0|  UI/UX:  0
-+
 Hi,

 Here's something that I use in my code and I'm thinking it might be useful
 to include in Django by default:

 {{{
 @property
 def saved_forms(self):
 if not self.is_bound:
 return ()
 return tuple(form for form in self.forms if (form.instance.pk is not
 None))
 }}}

 (This is a property of `BaseModelFormSet`.)

 This allows you to access the forms in the formset that were saved.

 What do you think? Would this be useful to add to Django?

 (I can easily make this code into a patch if you want.)

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.