We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Необходима корректировка Django модели с ценами.
Нет валидации цен. Можно легко вносить отрицательные значения.
class Price(models.Model): ... price_reg = models.DecimalField("Регистрация", max_digits=10, decimal_places=2) price_prolong = models.DecimalField("Продление", max_digits=10, decimal_places=2) price_change = models.DecimalField("Перенос", max_digits=10, decimal_places=2) ...
Хотя бы что то примитивное типо так:
validators=[MinValueValidator(Decimal('0.01'))]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Необходима корректировка Django модели с ценами.
Нет валидации цен. Можно легко вносить отрицательные значения.
Хотя бы что то примитивное типо так:
The text was updated successfully, but these errors were encountered: