django-constance icon indicating copy to clipboard operation
django-constance copied to clipboard

Default value for float field separated by comma instead point in admin interface

Open HenryPro10 opened this issue 5 years ago • 1 comments

Describe the problem

If I have default value for float option of constance config, it render with comma in admin interface. If I click on the default value and then try to save constance config, I will have type error message. Is it normal?

Steps to reproduce

Add this constance config:

CONSTANCE_CONFIG = { 'TEST_FIELD': (0.02, 'Example', float), }

System configuration

  • Django version:
  • Python version:

Python 3.6.3

Django==2.1.5 django-constance==2.4.0

HenryPro10 avatar Sep 02 '19 15:09 HenryPro10

Observed the same behavior for django-constance==2.7.0. Seems that the default value is not rendered language dependend. If custom value is set, everything is fine.

Rotzbua avatar Oct 18 '20 13:10 Rotzbua

it is fixed in recent version

sergei-iurchenko avatar Mar 15 '23 23:03 sergei-iurchenko