Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/docs/ref/models
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #21427 -- Clearly state integer field value ranges ↵Markus Amalthea Magnuson2013-11-211-10/+13
| | | | | | | | 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.
* Fixed #17001 -- Custom querysets for prefetch_related.Loic Bistuer2013-11-072-1/+115
| | | | | | | | | | | | | | | | | 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.
* Fixed typos in documentation.Baptiste Mispelon2013-11-061-1/+1
|
* Fixed #21344 -- Typo in docs/ref/models/queries.txtTim Graham2013-10-281-1/+1
|
* Fixed #13245: Explained Oracle's behavior w.r.t db_tableShai Berger2013-10-231-0/+12
| | | | | | and how to prevent table-name truncation Thanks russellm & timo for discussion, and timo for review.
* Fixed #17027 -- Added support for the power operator in ↵Florian Hahn2013-10-221-0/+4
| | | | | | | | | | 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
* Fixed #21212 -- Documented the reverse name for ↵Juergen Schackmann2013-10-181-0/+24
| | | | | | OneToOneField. Thanks bjb at credil.org for the report.
* Fixed #16855 -- select_related() chains as expected.Marc Tamlyn2013-10-151-48/+26
| | | | | | | 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()
* Fixed #8918 -- Made FileField.upload_to optional.Tim Graham2013-10-111-9/+11
| | | | | Thanks leahculver for the suggestion and dc and vajrasky for work on the patch.
* Whitespace cleanup.Tim Graham2013-10-101-1/+1
| | | | | | | * Removed trailing whitespace. * Added newline to EOF if missing. * Removed blank lines at EOF. * Removed some stray tabs.
* Fixed #10913 -- Documented how related_name affects ↵Tim Graham2013-10-021-4/+5
| | | | | | QuerySet filtering Thanks neithere for the suggestion.
* Fixed #20439 -- Started deprecation of IPAddressFieldErik Romijn2013-09-281-0/+4
|
* Correct very minor typomlissner2013-09-211-1/+1
| | | Just changed as to has.
* Fixed #21095 -- Documented new requirement for dates ↵Matt Austin2013-09-131-3/+6
| | | | | | lookups. Day, month, and week_day lookups now require time zone definitions in the database.
* Fixed spelling; refs #16895.Tim Graham2013-09-092-2/+2
| | | | Thanks Panagiotis Issaris for the report.
* Fixed #16895 -- Warned about cost of QuerySet orderinge0ne2013-09-092-0/+12
| | | | Thanks outofculture at gmail.com for the suggestion.
* Fixed #20409 -- Clarified how unique_for_date works when ↵Aymeric Augustin2013-09-071-1/+3
| | | | USE_TZ is set.
* Merge pull request #1567 from technivore/ticket_20970Tim Graham2013-09-061-75/+70
|\ | | | | re-indented method documentation within RelatedManager
| * re-indented method documentation within RelatedManagerMatthew Rich2013-09-061-75/+70
| |
* | Merge pull request #1544 from evildmp/ticket_20920_rebaseDaniele Procida2013-09-064-28/+145
|\ \ | |/ |/| Fixed #20920 -- Consolidated F() and Q() documentation
| * Consolidated documentation for F() and Q()evildmp2013-09-064-28/+145
| |
* | documented RelatedManager calling save() behind the ↵Matthew Rich2013-09-061-64/+92
|/ | | | scenes, added section on direct replacement of related object set
* Fixed #21035 -- Changed docs to treat the acronym SQL ↵Eric Boersma2013-09-063-4/+4
| | | | | | | phonetically. The documentation and comments now all use 'an' to refer to the word SQL and not 'a'.
* Fixed typo in docs/ref/models/options.txtTim Graham2013-08-311-2/+2
|
* Fixed #20988 -- Added model meta option select_on_saveAnssi Kääriäinen2013-08-302-5/+34
| | | | | | | | | | | 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
* Merge remote-tracking branch 'core/master' into ↵Andrew Godwin2013-08-231-8/+22
|\ | | | | | | | | | | | | | | | | | | 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
| * Fixed model.__eq__ and __hash__ for no pk value casesAnssi Kääriäinen2013-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | 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.
| * Documentation -- Corrected error about Model.full_clean()Kevin Christopher Henry2013-08-211-8/+3
| | | | | | | | | | | | Although the ModelForm validation code was changed to call Model.full_clean(), the documentation still said otherwise. The offending phrase was removed.
| * Documentation - Noted that OneToOneField doesn't respect ↵Kevin Christopher Henry2013-08-211-2/+2
| | | | | | | | | | | | | | | | 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.)
* | Documentation - Noted that OneToOneField doesn't respect ↵Kevin Christopher Henry2013-08-211-2/+2
| | | | | | | | | | | | | | | | 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.)
* | Merge remote-tracking branch 'core/master' into ↵Andrew Godwin2013-08-194-42/+47
|\| | | | | | | | | | | | | schema-alteration Conflicts: docs/ref/django-admin.txt
| * Removed versionadded/changed annotations for 1.5Tim Graham2013-08-194-41/+12
| |
| * Fixed #20777 -- Admin proxy model deletion regressionAnssi Kääriäinen2013-08-191-3/+3
| | | | | | | | Added proxy_models tests by Harm Geerts <github@geertswei.nl>.
| * Made Model.__eq__ consider proxy models equivalentAnssi Kääriäinen2013-08-191-0/+34
| | | | | | | | Fixed #11892, fixed #16458, fixed #14492.
| * Fixed some ReST errors regarding backticksTim Graham2013-08-151-1/+1
| |
* | Merge remote-tracking branch 'core/master' into ↵Andrew Godwin2013-08-091-0/+13
|\| | | | | | | | | | | | | schema-alteration Conflicts: django/db/models/options.py
| * Fixed #9057 -- Added default_permissions model meta option.Tim Graham2013-08-091-0/+13
| | | | | | | | Thanks hvendelbo for the suggestion and koenb for the draft patch.
* | Merge remote-tracking branch 'core/master' into ↵Andrew Godwin2013-08-094-61/+137
|\| | | | | | | | | | | | | | | | | | | | | | | 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
| * Merge pull request #1453 from ↵Preston Holmes2013-08-071-0/+3
| |\ | | | | | | | | | | | | chrismedrela/ticket20484-improvement Fixed #20484 again -- added note to field documentation
| | * Fixed #20484 again -- added note to field documentationChristopher Medrela2013-08-071-0/+3
| | |
| * | Fixed #20852 - Fixed incorrectly generated left quotes ↵Dominic Rodger2013-08-062-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | 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 ">&#8216;" in the generated HTML.
| * Fixed #20859 - Clarified Model.clean() example.Jimmy Song2013-08-051-9/+13
| |
| * Fixed #20842 and #20845 - Added a note on order_by() and ↵Daniele Procida2013-08-041-36/+67
| | | | | | | | improved prefetch_related() docs.
| * Deprecated SortedDict (replaced with ↵Curtis Maloney2013-08-041-4/+3
| | | | | | | | | | | | collections.OrderedDict) Thanks Loic Bistuer for the review.
| * Removed unused model option "admin"Tim Graham2013-08-011-3/+2
| |
| * Fixed #20649 -- Allowed blank field display to be ↵Alex Couper2013-07-311-5/+14
| | | | | | | | defined in the initial list of choices.
| * Fixed #20826 -- Moved Manager.raw() and ↵Loic Bistuer2013-07-311-0/+22
| | | | | | | | Manager._insert() to the QuerySet class.
| * Fixed a number of minor misspellings.Julien Phalip2013-07-281-1/+1
| |
| * Fixed #20625 -- Chainable Manager/QuerySet methods.Loic Bistuer2013-07-261-3/+12
| | | | | | | | | | | | | | | | | | | | | | 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.
* | More migration docs, and conversion of all easy syncdb ↵Andrew Godwin2013-07-251-6/+6
|/ | | | references