Questions tagged [django-money]
7 questions
5
votes
2 answers
How to get the money value without "$" using django-money?
I use django-money, then I have price field with MoneyField() in Product model as shown below:
# "app/models.py"
from django.db import models
from djmoney.models.fields import MoneyField
from decimal import Decimal
from djmoney.models.validators…

saran3h
- 12,353
- 4
- 42
- 54
1
vote
2 answers
Why is django-money running incorrectly in my view?
I'm using django-money to make conversions on my backend of the project but it is converting wrong. For example, I want to convert TRY to USD:
I enter 1000000 TRY it returns 480629.66 USD, but it should be: 120055.20 USD.
And when I enter 10000 Euro…

stephone
- 17
- 3
1
vote
2 answers
How to solve MissingRate error in Django?
I want to convert currencies in my Django app. I created a model Customer. In customer model, there are two fields for that credit_limit and currency_choice. I am using django-money for conversion. But I get an error:
MissingRate at /customer
Rate…

edche
- 636
- 6
- 33
0
votes
1 answer
Celery beat cannot update currency exchange rates with django-money
I use django-money, then I ran celery beat to update currency exchange rates every 60 minutes with the code below. *I followed django-money doc:
# "core/celery.py"
import os
from celery import…

Super Kai - Kazuya Ito
- 22,221
- 10
- 124
- 129
0
votes
0 answers
Django List Admin Is Very Slow When Setting is_editable to use a Django Money Field
I'm utilizing the django-money package in my model like so.
class MyModel(models.Model):
price_low = MoneyField(
max_digits=10,
default=0,
decimal_places=2,
null=True,
blank=True,
…

James Parker
- 2,095
- 3
- 27
- 48
0
votes
0 answers
django-money object not limiting decimal fields
I'm using django-money for all currency fields in an app I'm building. According to the documentation the default CURRENCY_DECIMAL_PLACES is 2, and I am explicitly calling it in my settings.py file as well. However, when I am checking a remaining…
-1
votes
1 answer
Can't I set the number with a decimal part to "MinMoneyValidator()" and "MaxMoneyValidator()" in "MoneyField()" with Django-money?
I use Django-money, then I set 0.00 and 999.99 to MinMoneyValidator() and MaxMoneyValidator() respectively in MoneyField() as shown below:
# "models.py"
from django.db import models
from djmoney.models.fields import MoneyField
from…

Super Kai - Kazuya Ito
- 22,221
- 10
- 124
- 129