diff options
| author | Дилян Палаузов <dilyanpalauzov@users.noreply.github.com> | 2017-10-02 11:14:08 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-10-02 11:15:26 -0400 |
| commit | 5d9b736fd8e09e273fb5aeeca0da268ecea5f1fd (patch) | |
| tree | a40f60b91b9bea348ff85918a1c61bc6c0648c99 | |
| parent | aba3467585a43236e9f8b97bffb5d77911b9caf6 (diff) | |
Fixed #28652 -- Fixed a few comments in django/db/models/*.
| -rw-r--r-- | django/db/models/query.py | 4 | ||||
| -rw-r--r-- | django/db/models/sql/compiler.py | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py index 1fe0b4d045..140fff7ec7 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -256,7 +256,7 @@ class QuerySet: """ The queryset iterator protocol uses three nested iterators in the default case: - 1. sql.compiler:execute_sql() + 1. sql.compiler.execute_sql() - Returns 100 rows at time (constants.GET_ITERATOR_CHUNK_SIZE) using cursor.fetchmany(). This part is responsible for doing some column masking, and returning the rows in chunks. @@ -438,7 +438,7 @@ class QuerySet: # insert into the childmost table. # We currently set the primary keys on the objects when using # PostgreSQL via the RETURNING ID clause. It should be possible for - # Oracle as well, but the semantics for extracting the primary keys is + # Oracle as well, but the semantics for extracting the primary keys is # trickier so it's not done yet. assert batch_size is None or batch_size > 0 # Check that the parents share the same concrete model with the our diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index 14d44d3eef..b23404f21d 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -1052,8 +1052,7 @@ class SQLCompiler: raise if result_type == CURSOR: - # Caller didn't specify a result_type, so just give them back the - # cursor to process (and close). + # Give the caller the cursor to process and close. return cursor if result_type == SINGLE: try: |
