Skip to content

Commit

Permalink
[1.6.x] Fixed some punctuation; thanks Chris Jerdonek.
Browse files Browse the repository at this point in the history
Backport of 81830ce from master
  • Loading branch information
timgraham committed Jan 23, 2014
1 parent 6bf05c0 commit c91e772
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/ref/models/querysets.txt
Expand Up @@ -1458,11 +1458,11 @@ where ``get_or_create`` will raise an :exc:`~django.db.IntegrityError` but the
object won't appear in a subsequent :meth:`~django.db.models.query.QuerySet.get` object won't appear in a subsequent :meth:`~django.db.models.query.QuerySet.get`
call. call.


Finally, a word on using ``get_or_create()`` in Django views: please make sure Finally, a word on using ``get_or_create()`` in Django views. Please make sure
to use it only in ``POST`` requests unless you have a good reason not to to use it only in ``POST`` requests unless you have a good reason not to.
``GET`` requests shouldn't have any effect on data; use ``POST`` whenever a ``GET`` requests shouldn't have any effect on data. Instead, use ``POST``
request to a page has a side effect on your data. For more, see `Safe methods`_ whenever a request to a page has a side effect on your data. For more, see
in the HTTP spec. `Safe methods`_ in the HTTP spec.


.. _Safe methods: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.1 .. _Safe methods: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.1


Expand Down

0 comments on commit c91e772

Please sign in to comment.