| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
in docs
Added an explicit mention of the exact value ranges for integer type
fields that are safe in all databases supported by Django. Also, put
all value numbers inside double ticks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch introduces the Prefetch object which allows customizing prefetch
operations.
This enables things like filtering prefetched relations, calling select_related
from a prefetched relation, or prefetching the same relation multiple times
with different querysets.
When a Prefetch instance specifies a to_attr argument, the result is stored
in a list rather than a QuerySet. This has the fortunate consequence of being
significantly faster. The preformance improvement is due to the fact that we
save the costly creation of a QuerySet instance.
Thanks @akaariai for the original patch and @bmispelon and @timgraham
for the reviews.
|
| |
|
| |
|
|
|
|
|
|
| |
and how to prevent table-name truncation
Thanks russellm & timo for discussion, and timo for review.
|
|
|
|
|
|
|
|
|
|
| |
F expressions.
Thanks dan at dlo.me for the initial patch.
- Added __pow__ and __rpow__ to ExpressionNode
- Added oracle and mysql specific power expressions
- Added used-defined power function for sqlite
|
|
|
|
|
|
| |
OneToOneField.
Thanks bjb at credil.org for the report.
|
|
|
|
|
|
|
| |
select_related('foo').select_related('bar') is now equivalent to
select_related('foo', 'bar').
Also reworded docs to recommend select_related(*fields) over select_related()
|
|
|
|
|
| |
Thanks leahculver for the suggestion and dc and vajrasky for work
on the patch.
|
|
|
|
|
|
|
| |
* Removed trailing whitespace.
* Added newline to EOF if missing.
* Removed blank lines at EOF.
* Removed some stray tabs.
|
|
|
|
|
|
| |
QuerySet filtering
Thanks neithere for the suggestion.
|
| |
|
|
|
| |
Just changed as to has.
|
|
|
|
|
|
| |
lookups.
Day, month, and week_day lookups now require time zone definitions in the database.
|
|
|
|
| |
Thanks Panagiotis Issaris for the report.
|
|
|
|
| |
Thanks outofculture at gmail.com for the suggestion.
|
|
|
|
| |
USE_TZ is set.
|
|\
| |
| | |
re-indented method documentation within RelatedManager
|
| | |
|
|\ \
| |/
|/| |
Fixed #20920 -- Consolidated F() and Q() documentation
|
| | |
|
|/
|
|
| |
scenes, added section on direct replacement of related object set
|
|
|
|
|
|
|
| |
phonetically.
The documentation and comments now all use 'an' to
refer to the word SQL and not 'a'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The option can be used to force pre 1.6 style SELECT on save behaviour.
This is needed in case the database returns zero updated rows even if
there is a matching row in the DB. One such case is PostgreSQL update
trigger that returns NULL.
Reviewed by Tim Graham.
Refs #16649
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
schema-alteration
Conflicts:
django/db/backends/oracle/base.py
django/db/backends/postgresql_psycopg2/base.py
django/db/models/signals.py
tests/queries/tests.py
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The __eq__ method now considers two instances without primary key value
equal only when they have same id(). The __hash__ method raises
TypeError for no primary key case.
Fixed #18864, fixed #18250
Thanks to Tim Graham for docs review.
|
| |
| |
| |
| |
| |
| | |
Although the ModelForm validation code was changed to call
Model.full_clean(), the documentation still said otherwise. The
offending phrase was removed.
|
| |
| |
| |
| |
| |
| |
| |
| | |
unique.
Added OneToOneField to the list of model fields for which the unique
argument isn't valid. (OneToOneFields are inherently unique, and if
the user supplies a value for unique it is ignored / overwritten.)
|
| |
| |
| |
| |
| |
| |
| |
| | |
unique.
Added OneToOneField to the list of model fields for which the unique
argument isn't valid. (OneToOneFields are inherently unique, and if
the user supplies a value for unique it is ignored / overwritten.)
|
|\|
| |
| |
| |
| |
| |
| | |
schema-alteration
Conflicts:
docs/ref/django-admin.txt
|
| | |
|
| |
| |
| |
| | |
Added proxy_models tests by Harm Geerts <github@geertswei.nl>.
|
| |
| |
| |
| | |
Fixed #11892, fixed #16458, fixed #14492.
|
| | |
|
|\|
| |
| |
| |
| |
| |
| | |
schema-alteration
Conflicts:
django/db/models/options.py
|
| |
| |
| |
| | |
Thanks hvendelbo for the suggestion and koenb for the draft patch.
|
|\|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
schema-alteration
Conflicts:
django/core/management/commands/flush.py
django/core/management/commands/syncdb.py
django/db/models/loading.py
docs/internals/deprecation.txt
docs/ref/django-admin.txt
docs/releases/1.7.txt
|
| |\
| | |
| | |
| | |
| | | |
chrismedrela/ticket20484-improvement
Fixed #20484 again -- added note to field documentation
|
| | | |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
in docs.
Sphinx generates left single quotes for apostrophes after
code markup, when right single quotes are required. The
easiest way to fix this is just by inserting the unicode
character for a right single quote.
Instances of the problem were found by looking for
">‘" in the generated HTML.
|
| | |
|
| |
| |
| |
| | |
improved prefetch_related() docs.
|
| |
| |
| |
| |
| |
| | |
collections.OrderedDict)
Thanks Loic Bistuer for the review.
|
| | |
|
| |
| |
| |
| | |
defined in the initial list of choices.
|
| |
| |
| |
| | |
Manager._insert() to the QuerySet class.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Additionally this patch solves the orthogonal problem that specialized
`QuerySet` like `ValuesQuerySet` didn't inherit from the current `QuerySet`
type. This wasn't an issue until now because we didn't officially support
custom `QuerySet` but it became necessary with the introduction of this new
feature.
Thanks aaugustin, akaariai, carljm, charettes, mjtamlyn, shaib and timgraham
for the reviews.
|
|/
|
|
| |
references
|