Hard to help with this small code. Could you please send me all function or
class from your view.py ?
12 трав. 2016 22:37 "Григор Колев" <grigor.ko...@gmail.com> пише:

> #models.py
> coef = models.DecimalField(max_digits=5, decimal_places=4, default=0.0100,
> verbose_name='Коефицент')
>
>
> #view.py
> item['coef'] == 0.01
> print item['coef'] # return 0.0
> if item['total'] < 0:
>     item['sum'] = item['total'] * ( item['coef'] * -1)
>
> On Python it is work.
> I try to make coke Float but without success
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/22a61dc0-808a-4e55-9b06-14db6664b1db%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/22a61dc0-808a-4e55-9b06-14db6664b1db%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADTRxJOjSSv6z%2Bf9Sp0AzpxsO%2BC2hzpzjSxZHPKVAFe7vdB3cQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to