mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Update django money / py-moneyed dependencies (#5778)
* Replace moneyed format_money function * Update django-money to 3.3.0 and py-moneyed to 3.0 * Add CurrencyField migrations * Fix checking if decimal_places is set * Add currency formatting test * Test fixing deepsource test patterns * Revert "Test fixing deepsource test patterns" This reverts commit398ef93cd6. * FIx requirements.txt formatting * Revert "FIx requirements.txt formatting" This reverts commitbb554b0758.
This commit is contained in:
		@@ -0,0 +1,19 @@
 | 
			
		||||
# Generated by Django 3.2.22 on 2023-10-24 16:44
 | 
			
		||||
 | 
			
		||||
from django.db import migrations
 | 
			
		||||
import djmoney.models.fields
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class Migration(migrations.Migration):
 | 
			
		||||
 | 
			
		||||
    dependencies = [
 | 
			
		||||
        ('stock', '0103_stock_location_types'),
 | 
			
		||||
    ]
 | 
			
		||||
 | 
			
		||||
    operations = [
 | 
			
		||||
        migrations.AlterField(
 | 
			
		||||
            model_name='stockitem',
 | 
			
		||||
            name='purchase_price_currency',
 | 
			
		||||
            field=djmoney.models.fields.CurrencyField(choices=[], default='', editable=False, max_length=3, null=True),
 | 
			
		||||
        ),
 | 
			
		||||
    ]
 | 
			
		||||
		Reference in New Issue
	
	Block a user