Re: [Django] #11294: Django administration Model list always shows Decimal with decimal places

2023-01-29 Thread Django
#11294: Django administration Model list always shows Decimal with decimal 
places
---+
 Reporter:  jason@…|Owner:  nobody
 Type:  Bug|   Status:  closed
Component:  contrib.admin  |  Version:  dev
 Severity:  Normal |   Resolution:  invalid
 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 Durval Carvalho):

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


-- 
Ticket URL: <https://code.djangoproject.com/ticket/11294#comment:8>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/01070185ff0df16f-70cf6f2b-87ea-4b03-b299-e0184e0bb178-00%40eu-central-1.amazonses.com.


Re: [Django] #11294: Django administration Model list always shows Decimal with decimal places

2013-06-06 Thread Django
#11294: Django administration Model list always shows Decimal with decimal 
places
---+
 Reporter:  jason@…|Owner:  nobody
 Type:  Bug|   Status:  new
Component:  contrib.admin  |  Version:  master
 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 oinopion):

 * cc: tomek@… (added)


-- 
Ticket URL: <https://code.djangoproject.com/ticket/11294#comment:7>
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 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/076.d53d51b39e89a84d77e67ce168c9fd00%40djangoproject.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #11294: Django administration Model list always shows Decimal with decimal places

2013-06-06 Thread Django
#11294: Django administration Model list always shows Decimal with decimal 
places
---+
 Reporter:  jason@…|Owner:  nobody
 Type:  Bug|   Status:  new
Component:  contrib.admin  |  Version:  master
 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 oinopion):

 * version:  1.1-beta => master


Comment:

 The problem here is two folds:

 1. By default, admin will not localize input values. Not localized input
 is rendered as `str(value)`, which is `Decimal.__str__`. List display uses
 `display_for_field`, which localizes value if I18N is on.
 2. When forced to localize (by settings `ModelForm._opts.localized_fields
 = '__all__'`), decimal input still does not honour
 `DecimalField.decimal_places` and is displayed differently from list.

 Fix for 2. is easy, overriding `_format_value` in NumberInput to correctly
 use `number_format` with `decimal_places`.
 Fix for 1. is not easy, if not impossible, tickets #13032 and #13546
 mention problems with localizing inputs by default. At least we can better
 document current admin behaviour and include instructions to change it.
 Better yet, would be to include another `ModelAdmin` option to control
 `localized_fields` in generated `ModelForm` classes.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/11294#comment:6>
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 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/076.13adeec272aa891317af24a9cd0b35da%40djangoproject.com?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Django] #11294: Django administration Model list always shows Decimal with decimal places

2009-06-10 Thread Django
#11294: Django administration Model list always shows Decimal with decimal 
places
---+
  Reporter:  ja...@ncac.gwu.edu| Owner:  nobody
Status:  new   | Milestone:
 Component:  django.contrib.admin  |   Version:  1.1-beta-1
Resolution:|  Keywords:
 Stage:  Unreviewed| Has_patch:  0 
Needs_docs:  0 |   Needs_tests:  0 
Needs_better_patch:  0 |  
---+
Changes (by Alex):

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

Comment:

 Not a critical bug, thus not in line for 1.1.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11294#comment:1>
Django <http://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
-~--~~~~--~~--~--~---



[Django] #11294: Django administration Model list always shows Decimal with decimal places

2009-06-10 Thread Django
#11294: Django administration Model list always shows Decimal with decimal 
places
--+-
 Reporter:  ja...@ncac.gwu.edu|   Owner:  nobody
   Status:  new   |   Milestone:  1.1   
Component:  django.contrib.admin  | Version:  1.1-beta-1
 Keywords:|   Stage:  Unreviewed
Has_patch:  0 |  
--+-
 Only in the list_display does the admin interface show DecimalField with
 precision of .00.  In the view of an object in the Model, 0.00, for
 example, would be shown as 0, without the precision.  I'd say the same
 rendering should be for both, and that displaying without the .00 is
 preferred.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11294>
Django <http://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
-~--~~~~--~~--~--~---