mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Ref: https://stackoverflow.com/questions/37958130/automatically-round-djangos-decimalfield-according-to-the-max-digits-and-decima
21 lines
554 B
Python
21 lines
554 B
Python
# Generated by Django 2.2.9 on 2020-03-18 11:14
|
|
|
|
import InvenTree.fields
|
|
import django.core.validators
|
|
from django.db import migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('company', '0011_auto_20200318_1114'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name='supplierpricebreak',
|
|
name='quantity',
|
|
field=InvenTree.fields.RoundingDecimalField(decimal_places=5, default=1, max_digits=15, validators=[django.core.validators.MinValueValidator(1)]),
|
|
),
|
|
]
|