django-prices icon indicating copy to clipboard operation
django-prices copied to clipboard

Django fields for the prices module

Results 22 django-prices issues
Sort by recently updated
recently updated
newest added

DoD: - Use better msgs https://github.com/mirumee/django-prices/pull/78#discussion_r300449932 - Write test scenario: - Form has fixed currency - Before form submission database changes and don't allow this currency - Check if proper...

Based on https://github.com/mirumee/django-prices/pull/78#discussion_r300449932 DoD: - `format_price` should add currency code in data-* argument for generated html code

DoD: - add snapshot pkg to dev requirements - update CI to not generate snapshots - update tests like `test_money_input_widget_renders` and `test_non_existing_locale`

Decimal and Ints are accepted value for MoneyField, which might lead to hard-to-catch bugs. I'd propose to only accept Money types, except for 0 value - which can be automatically...

Hi. There is a problem using Saleor/django-prices in case with some default locales: e.g: ``` LANGUAGE_CODE=ru DEFAULT_CURRENCY=USD ``` Usage: `{{ price|amount:'html' }}` Output: **11,49 $** It is not valid output...

During work on updating Saleor's codebase to use current prices, I've ran into plenty of edge cases with Django ORM accessing different attributes on `TaxedMoneyField` instances when running different operations....

enhancement
to test

Hey. I'm trying to choose which is better, and so far, what I saw is the native support of the currencies by ISO from [Dango Money](https://github.com/django-money/django-money), and you have support...

Invalid literal for Decimal: u"Price('49.69', currency=u'USD')" class Product(models.Model): price = PriceField('Price', currency='BTC', max_digits=12, decimal_places=2) class ProductSerializer(serializers.ModelSerializer): class Meta: model = Product view_name = 'item-detail' fields = '__all__'

We need to explain what `prices` is and how it makes your life easier and helps you avoid common pitfalls.

enhancement

In django admin, price field is rendered as `Price('0.00`