the string
Reporter.objects.all().update(stories_filed=F('stories_filed) + 1)
does not enclose "stories_filed" in complete string ''.
The code above this string is correct. It's a small errata nothing
serious and one can easily remedy this.
--
Ticket URL: <https://code.djangoproject.com/ticket/22405>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* needs_better_patch: => 0
* needs_tests: => 0
* version: 1.7-beta-1 => master
* owner: nobody => anubhav9042
* needs_docs: => 0
* has_patch: 0 => 1
* type: Uncategorized => Cleanup/optimization
Comment:
https://github.com/django/django/pull/2526
I think this should apply to master and also backported to 1.7b1.
--
Ticket URL: <https://code.djangoproject.com/ticket/22405#comment:1>
* status: assigned => closed
* resolution: => fixed
* stage: Unreviewed => Accepted
Comment:
In 36de29200e1ea713c278f7672ab1790e1500c423:
Fixed #22405 -- Fixed string error in models/queries docs.
Backported to 1.7.x in 61b7fcf4783178e5212688d34449f8204e40082a.
--
Ticket URL: <https://code.djangoproject.com/ticket/22405#comment:2>