Re: [Django] #25731: Remove choices from ether instance or method attribute in Select widget

2016-02-02 Thread Django
#25731: Remove choices from ether instance or method attribute in Select widget
--+
 Reporter:  codingjoe |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  closed
Component:  Forms |  Version:  1.8
 Severity:  Normal|   Resolution:  fixed
 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 Tim Graham ):

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


Comment:

 In [changeset:"926e90132dc15d76bb8d16e2f9f1279566cac3c3" 926e9013]:
 {{{
 #!CommitTicketReference repository=""
 revision="926e90132dc15d76bb8d16e2f9f1279566cac3c3"
 Fixed #25731 -- Removed unused choices kwarg for Select.render()
 }}}

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.ee86cb2aa77104cea024a3bf46857ebd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25731: Remove choices from ether instance or method attribute in Select widget

2016-02-01 Thread Django
#25731: Remove choices from ether instance or method attribute in Select widget
--+
 Reporter:  codingjoe |Owner:  nobody
 Type:  Cleanup/optimization  |   Status:  new
Component:  Forms |  Version:  1.8
 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 timgraham):

 * status:  closed => new
 * has_patch:  0 => 1
 * resolution:  needsinfo =>
 * stage:  Unreviewed => Accepted


Comment:

 [https://github.com/django/django/pull/6037 PR]

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.462b563db8ea326bb1fa92892ce54c4b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25731: Remove choices from ether instance or method attribute in Select widget

2016-01-25 Thread Django
#25731: Remove choices from ether instance or method attribute in Select widget
-+-
 Reporter:  codingjoe|Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |
Component:  Forms|  Version:  1.8
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Tim Graham ):

 In [changeset:"65c13f9675d2ca7fc1c925e7182a2e35d07ff5fb" 65c13f96]:
 {{{
 #!CommitTicketReference repository=""
 revision="65c13f9675d2ca7fc1c925e7182a2e35d07ff5fb"
 Refs #25731 -- Removed unused MultipleHiddenInput choices
 }}}

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.05c55655944daeb856b0887baf19ca3e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25731: Remove choices from ether instance or method attribute in Select widget

2016-01-24 Thread Django
#25731: Remove choices from ether instance or method attribute in Select widget
-+-
 Reporter:  codingjoe|Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |
Component:  Forms|  Version:  1.8
 Severity:  Normal   |   Resolution:  needsinfo
 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 jpic):

 * cc: jpic (added)


--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.61f1433e5a0aa6f62d4756ebfb2220f2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25731: Remove choices from ether instance or method attribute in Select widget

2016-01-24 Thread Django
#25731: Remove choices from ether instance or method attribute in Select widget
-+-
 Reporter:  codingjoe|Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |
Component:  Forms|  Version:  1.8
 Severity:  Normal   |   Resolution:  needsinfo
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by jpic):

 Agreed that this part is a bit fuzzy, seems like a leftover from before a
 refactor.

 I do not see any valid use case for this argument, why would a user put so
 much effort into appending options that won't validate to a select widget
 ?

 Patch proposed: https://github.com/django/django/pull/6037

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.cd2e6de5de7cebbbf73ac9adad70f0fe%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25731: Remove choices from ether instance or method attribute in Select widget

2015-11-17 Thread Django
#25731: Remove choices from ether instance or method attribute in Select widget
-+-
 Reporter:  codingjoe|Owner:  nobody
 Type:   |   Status:  closed
  Cleanup/optimization   |
Component:  Forms|  Version:  1.8
 Severity:  Normal   |   Resolution:  needsinfo
 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 timgraham):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 Please reopen if you can provide a patch, otherwise I'm not sure how to
 proceed with this ticket.

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.ff852e46afc6468dff5797ea988aab79%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25731: Remove choices from ether instance or method attribute in Select widget

2015-11-12 Thread Django
#25731: Remove choices from ether instance or method attribute in Select widget
-+-
 Reporter:  codingjoe|Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |
Component:  Forms|  Version:  1.8
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by timgraham):

 I think it's very likely that some users render widgets multiple times on
 a page for whatever reason, so I don't think removing that functionality
 is an option.

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.bf804b30e415bac465ac285049210f18%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25731: Remove choices from ether instance or method attribute in Select widget

2015-11-11 Thread Django
#25731: Remove choices from ether instance or method attribute in Select widget
-+-
 Reporter:  codingjoe|Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |
Component:  Forms|  Version:  1.8
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by codingjoe):

 Tim, I could work on a patch, but I'd like to make a design decision
 first.

 As I see it, the only reason why there is the option to pass choices into
 the renderer directly is the `ModelChoiceIterator`.
 Where the regular choices get cast into a list, this would be a very poor
 idea for the `ModelChoiceIterator`.

 The question is, should we allow Widgets to be rendered multiple times and
 drop the instance attribute, or should we not.
 Another option would be to deepcopy the choices when they're being
 rendered.

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.a6f39274660a7aa74c5e47a11833faa8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Django] #25731: Remove choices from ether instance or method attribute in Select widget

2015-11-11 Thread Django
#25731: Remove choices from ether instance or method attribute in Select widget
-+-
 Reporter:  codingjoe|Owner:  nobody
 Type:   |   Status:  new
  Cleanup/optimization   |
Component:  Forms|  Version:  1.8
 Severity:  Normal   |   Resolution:
 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 timgraham):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 It's a bit difficult for me to evaluate the ticket without some working
 code. Upon working on it, you might find the reason for the current
 implementation. Can you provide a patch?

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.a443f5a7f0b551c1d7a92c81264f9872%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.


[Django] #25731: Remove choices from ether instance or method attribute in Select widget

2015-11-11 Thread Django
#25731: Remove choices from ether instance or method attribute in Select widget
--+
 Reporter:  codingjoe |  Owner:  nobody
 Type:  Cleanup/optimization  | Status:  new
Component:  Forms |Version:  1.8
 Severity:  Normal|   Keywords:
 Triage Stage:  Unreviewed|  Has patch:  0
Easy pickings:  0 |  UI/UX:  0
--+
 `django.forms.widgets.Select` chains `self.choices` a kwarg `choices`.

 I think this is a bit over the top, and results in a lot of complexity. I
 couldn't find a good reason to why this is actually implemented that way.

 I'd like to drop one of the two. Ether remove the choices from the
 instance and keep passing them in all methods, or preferable remove them
 from the method signatures.
 The latter I think is cleaner but does include a bit of deprecation.

 Cheers,
 Joe

--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.7bfd306abaef523a41db44b771df1890%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.