2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00
InvenTree/InvenTree/order/migrations/0039_auto_20201112_2203.py
Matthias Mair d7d3d8aa26
Currency migrations - stop migrations when defaults change (#4975)
* make currency choices independend

* replace hard coded default currency

* use function for psql?

* use callable default

* revert some fields

* also migrat all currency codes
2023-06-07 20:05:37 +10:00

21 lines
630 B
Python

# Generated by Django 3.0.7 on 2020-11-12 11:03
from django.db import migrations
import djmoney.models.fields
import common.settings
class Migration(migrations.Migration):
dependencies = [
('order', '0038_auto_20201112_1737'),
]
operations = [
migrations.AlterField(
model_name='purchaseorderlineitem',
name='purchase_price',
field=djmoney.models.fields.MoneyField(blank=True, decimal_places=4, default_currency=common.settings.currency_code_default(), help_text='Unit purchase price', max_digits=19, null=True, verbose_name='Purchase Price'),
),
]