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+unsubscr...@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.

Reply via email to