summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-02 11:24:18 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-02 11:24:18 -0800
commit7f110e7959a11608ba2714e563d67b2cdf61049c (patch)
tree201c410e9931fac4541bc4769dee1ccd1ffa8aac /docs
parent7a30eab06e05f9c5901ad2f70378948450473c88 (diff)
parent6dd8631617de56aae72f7d6b3708b83459d629c2 (diff)
Merge pull request #2137 from ftobia/patch-1
Fixed typos. Changed grammar.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/db/sql.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/topics/db/sql.txt b/docs/topics/db/sql.txt
index 1369ed84f5..1b806ca42f 100644
--- a/docs/topics/db/sql.txt
+++ b/docs/topics/db/sql.txt
@@ -23,11 +23,11 @@ return model instances:
.. method:: Manager.raw(raw_query, params=None, translations=None)
-This method method takes a raw SQL query, executes it, and returns a
+This method takes a raw SQL query, executes it, and returns a
``django.db.models.query.RawQuerySet`` instance. This ``RawQuerySet`` instance
-can be iterated over just like an normal QuerySet to provide object instances.
+can be iterated over just like a normal QuerySet to provide object instances.
-This is best illustrated with an example. Suppose you've got the following model::
+This is best illustrated with an example. Suppose you have the following model::
class Person(models.Model):
first_name = models.CharField(...)
@@ -108,7 +108,7 @@ write::
>>> first_person = Person.objects.raw('SELECT * from myapp_person')[0]
However, the indexing and slicing are not performed at the database level. If
-you have a big amount of ``Person`` objects in your database, it is more
+you have a large number of ``Person`` objects in your database, it is more
efficient to limit the query at the SQL level::
>>> first_person = Person.objects.raw('SELECT * from myapp_person LIMIT 1')[0]
@@ -323,4 +323,4 @@ is equivalent to:
try:
c.execute(...)
finally:
- c.close() \ No newline at end of file
+ c.close()