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

Any plans to support Django REST Framework? As I am heavily invested in this library already, now I need a couple of serializations for DRF...

On model I have fields: ``` currency = models.CharField(max_length=settings.DEFAULT_CURRENCY_CODE_LENGTH) price_amount = models.DecimalField( max_digits=settings.DEFAULT_MAX_DIGITS, decimal_places=settings.DEFAULT_DECIMAL_PLACES, ) price = MoneyField(amount_field="price_amount", currency_field="currency") ``` When I change `price` on objects and try to save...

This PR improves our handling for scenario when `MoneyField.default` is of type `Money`: `MoneyField.__init__` validates that `Money.currency` is same as one passed in the `currency` argument, and raises `ValueError` otherwise,...

bug
finished

Latest Pytest throws deprecation errors straight into the console, after merging this PR there will be one log less. `context` kwarg will be deprecated in Django 3.0, and was dropped...

There is currently no description in the PyPi page. We probably should import the readme file.

Codebase needs to have additional tests for rendering our custom fields in django views. Probably tests can be performed using snapshottest.