#7060: Fix race condition in tutorial vote() view
--------------------------------------+------------------------------------
Reporter: donald.ball@… | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by bmispelon):
Personally I think adding `F` expressions at this point in the tutorial is
premature and too complicated.
The `vote` view has no user authenticated and no rate-limiting so adding a
protection against race conditions seems pointless to me.
I'm not sure the argument about better coding practices applies here
either because if that's what we were going for, we'd be using a Form
instead of the current ad-hoc handling.
However I would be OK with a paragraph mentionning the limitations of the
code and linking to things like forms, F objects, ...
--
Ticket URL: <https://code.djangoproject.com/ticket/7060#comment:9>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/079.30310f9a954631ed2faa526ffe339b35%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.