Django Book 翻译
菜单>:
TOC
返回
原文:
As mentioned earlier, ``get_or_create()`` is mostly useful in scripts that need to parse data and create new records if existing ones arent available. But if you need to use ``get_or_create()`` in a view, please make sure to use it only in ``POST`` requests unless you have a good reason not to. ``GET`` requests shouldnt have any effect on data; use ``POST`` whenever a request to a page has a side effect on your data.
翻译:
备注:
译者: