I think you mailed me instead of mailing someone
On Wed, Sep 23, 2020 at 2:47 PM Kasper Laudrup <laudrup@stacktrace.dk> wrote:
Hi eankomah,
Completely unrelated, but:> unit_price = models.FloatField()
Don't use floats for money. It will give you all kinds of problems with
rounding errors etc.
Assuming this is just a hobby project, it's probably fine, but otherwise
consider looking into something like:
https://github.com/django-money/django-money
Just an advice.
Kind regards,
Kasper Laudrup
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/63a264e8-c0b5-14f5-759d-0e7593b4e27f%40stacktrace.dk.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHg_i8hfKt5nMdiwNseX4DXpN12vds7NEGUf0pOAvSkd5oR8Lg%40mail.gmail.com.
No comments:
Post a Comment