﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
4807	Decimal regex doesn't support a case where no leading numbers are used	chris.moffitt@…	Adrian Holovaty	"In a case where you want percentages less than 100, it would be expected to have a decimal field like this:
{{{

percentage = models.DecimalField(decimal_places=4,max_digits=4)

}}}

In order to allow the user to only enter values from .0001 -> .9999

The problem is the decimal_re in validators.py requires at least 1 digit:
decimal_re = re.compile(r'^-?(?P<digits>\d+)(\.(?P<decimals>\d+))?$')

If you modify the field to include 5 digits, then you support the range .0001 -> 9.9999

This isn't a show stopper but it is a little counter-intuitive.  Unfortunately my regex foo isn't quite good enough to figure out the right regex."		closed	Validators	dev		fixed		jshaffer2112@… gajon@…	Accepted	1	0	0	1	0	0
