#13666: Updates with F objects on decimal fields raise MySQL warnings
---------------------------+------------------------------------------------
Reporter: KyleMac | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: 1.2
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
Doing something like the following:
{{{
MyModel.objects.filter(whatever).update(price=F('price') -
Decimal('1.00'))
}}}
raises an exception due to an ignorable warning from MySQL.
This is basically identical to #12293 except that the documentation would
have you believe that this should work without any extra work.
--
Ticket URL: <http://code.djangoproject.com/ticket/13666>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.