Re: [Django] #10792: documentation error on ModelForm ModelChoiceField empty option

2009-05-07 Thread Django
#10792: documentation error on ModelForm ModelChoiceField empty option
+---
  Reporter:  carljm | Owner:  carljm
Status:  assigned   | Milestone:  1.1   
 Component:  Forms  |   Version:  SVN   
Resolution: |  Keywords:
 Stage:  Ready for checkin  | Has_patch:  1 
Needs_docs:  0  |   Needs_tests:  0 
Needs_better_patch:  0  |  
+---
Changes (by jacob):

  * 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 this group at 
http://groups.google.com/group/django-updates?hl=en
-~--~~~~--~~--~--~---



Re: [Django] #10792: documentation error on ModelForm ModelChoiceField empty option

2009-05-04 Thread Django
#10792: documentation error on ModelForm ModelChoiceField empty option
---+
  Reporter:  carljm| Owner:  carljm
Status:  assigned  | Milestone:  1.1   
 Component:  Forms |   Version:  SVN   
Resolution:|  Keywords:
 Stage:  Accepted  | Has_patch:  1 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by mattmcc):

  * has_patch:  0 => 1

-- 
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] #10792: documentation error on ModelForm ModelChoiceField empty option

2009-04-11 Thread Django
#10792: documentation error on ModelForm ModelChoiceField empty option
---+
  Reporter:  carljm| Owner:  carljm
Status:  assigned  | Milestone:  1.1   
 Component:  Forms |   Version:  SVN   
Resolution:|  Keywords:
 Stage:  Accepted  | Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by carljm):

  * owner:  nobody => carljm
  * status:  new => assigned

Comment:

 Great, I was hoping that would be the answer.  Patch attached.

 The current patch means that if someone has a ModelChoiceField with
 required=True and an initial value, they cannot use empty_label to force
 the creation of an empty option.  I can't think of a use case for this,
 but if we want to preserve that possibility it will mean complicating the
 empty_label argument a bit: giving it some default sentinel value
 (normally would be None, but since that has meaning in this case we can't
 use it) so we know when it's been set explicitly.

-- 
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] #10792: documentation error on ModelForm ModelChoiceField empty option

2009-04-11 Thread Django
#10792: documentation error on ModelForm ModelChoiceField empty option
---+
  Reporter:  carljm| Owner:  nobody
Status:  new   | Milestone:  1.1   
 Component:  Forms |   Version:  SVN   
Resolution:|  Keywords:
 Stage:  Accepted  | Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by mtredinnick):

  * needs_better_patch:  => 0
  * needs_docs:  => 0
  * stage:  Unreviewed => Accepted
  * needs_tests:  => 0
  * milestone:  => 1.1

Comment:

 The current behaviour sounds like a bug. We fix bugs, rather than
 documenting around them. There's no real backwards-compat problem here,
 since there's no good reason to include the blank option in those cases.
 Would be nice to fix this for 1.1 if you feel like knocking up 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 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
-~--~~~~--~~--~--~---