Tim Graham
1d17bb4f7d
Refs #19527 -- Fixed typo in docs/ref/models/querysets.txt.
2016-03-02 15:54:46 -05:00
Marc Tamlyn
8ddc79a799
Fixed #26285 -- Deprecated the MySQL-specific __search lookup.
2016-03-02 14:41:56 -05:00
acrefoot
04240b2365
Refs #19527 -- Allowed QuerySet.bulk_create() to set the primary key of its objects.
...
PostgreSQL support only.
Thanks Vladislav Manchev and alesasnouski for working on the patch.
2016-03-02 14:29:09 -05:00
Taranjeet
11a8207d42
Fixed typos in docs/ref/models/meta.txt.
2016-03-01 08:33:27 -05:00
Simon Charette
0223e213dd
Fixed #26186 -- Documented how app relative relationships of abstract models behave.
...
This partially reverts commit bc7d201bdb
.
Thanks Tim for the review.
Refs #25858 .
2016-02-29 22:07:05 -05:00
chenesan
b84f5ab4ec
Fixed #26230 -- Made default_related_name affect related_query_name.
2016-02-27 08:48:32 -05:00
Adam Chainz
ef33bc2d4d
Fixed #25279 -- Made prefetch_related_objects() public.
2016-02-26 14:55:01 -05:00
Claude Paroz
d43156e1e9
Fixed #26238 -- Raised explicit error for non-editable field in ModelForm
...
Thanks Luke Crouch for the report and Simon Charette for the review.
2016-02-21 00:24:20 +01:00
Tim Graham
88034c9938
Fixed #25687 -- Documented how to add database function support to third-party backends.
...
Thanks Kristof Claes for the initial patch.
2016-02-17 13:36:12 -05:00
Brobin
dca8b916ff
Fixed #26154 -- Deprecated CommaSeparatedIntegerField
2016-02-10 17:57:43 -05:00
Tim Graham
8ce8beb3f2
Unified some doc links to OneToOneField and ManyToManyField.
2016-02-01 11:02:26 -05:00
rowanv
a6ef025dfb
Fixed #26124 -- Added missing code formatting to docs headers.
2016-02-01 10:42:05 -05:00
James Pulec
f05722a08a
Fixed #25354 -- Added class/app_label interpolation for related_query_name.
2016-01-28 11:10:47 -05:00
Elif T. Kus
bca9faae95
Fixed #26020 -- Normalized header stylings in docs.
2016-01-22 12:12:17 -05:00
Tim Graham
28acc0d6df
Fixed #26078 -- Clarified "old vs. new" in model._meta upgrade guide.
...
Thanks Thomas Güttler for the suggestion.
2016-01-14 07:24:25 -05:00
pp
b34ff66e5b
Added missing period to "etc.".
2016-01-11 18:05:15 -05:00
Marten Kenbeek
16411b8400
Fixed #26013 -- Moved django.core.urlresolvers to django.urls.
...
Thanks to Tim Graham for the review.
2015-12-31 14:21:29 -05:00
Bryan Marty
62ca2dea04
Fixed #8065 -- Made id_list an optional argument for QuerySet.in_bulk().
2015-12-26 17:57:19 -05:00
Alexander Sosnovskiy
2a7ce34600
Fixed #14286 -- Added models.BigAutoField.
2015-12-25 20:01:31 -05:00
Chris Lamb
77b8d8cb6d
Discouraged use of /tmp with predictable names.
...
The use of predictable filenames in /tmp often leads to symlink attacks
so remove the most obvious use of them in the docs.
2015-12-24 09:54:33 -05:00
Alexander Sosnovskiy
b61eab18f7
Fixed #13774 -- Added models.Field.rel_db_type().
2015-12-04 07:55:41 -05:00
Qile Wang
83a710b8d3
Fixed typo in docs/ref/models/instances.txt
2015-12-03 12:55:32 -05:00
Jon Dufresne
7aabd62380
Fixed #25778 -- Updated docs links to use https when available.
2015-12-01 08:01:34 -05:00
Sergey Fedoseev
da08195b36
Removed old versionadded/changed directives.
2015-11-30 18:45:57 -05:00
Bulgantamir Gankhuyag
8bce6fa637
Clarified default value for DateField to emulate auto_now_add.
2015-11-24 08:38:14 -05:00
areski
1e7da99ea6
Corrected GenericIPAddressField protocol parameter doc.
2015-11-19 11:18:31 -05:00
Tim Graham
a8f05f405f
Replaced "inbuilt" with more common "built-in".
2015-11-12 17:29:03 -05:00
Alex Morozov
4373eac998
Fixed #25132 -- Documented how to retrieve a single value using values_list() and get().
2015-11-03 12:23:45 +00:00
Sergey Fedoseev
0a26121797
Refs #25629 -- Added `arity` class attribute to `Func` expressions
2015-11-02 20:09:21 +01:00
Tim Graham
69239c0f96
Fixed #21422 -- Documented that prefetch_related() results must be homogeneous.
2015-10-30 10:26:54 -04:00
Tim Graham
9c5e272860
Fixed #25550 -- Deprecated direct assignment to the reverse side of a related set.
2015-10-27 07:57:15 -04:00
Tim Graham
f6b9e6bf4f
Fixed typo in docs/ref/models/relations.txt.
2015-10-13 04:24:22 -07:00
Tim Graham
e0837f2cb1
Fixed #25508 -- Modified QuerySet.__repr__() to disambiguate it from a list.
2015-10-06 12:38:34 -04:00
Tim Graham
de99f558d8
Fixed #25462 -- Removed Model.__unicode__() in favor of @python_2_unicode_compatible.
2015-09-25 13:28:12 -04:00
Tim Graham
54848a96dd
Removed versionadded/changed annotations for 1.8.
2015-09-23 19:31:11 -04:00
Tim Graham
c64dd646f5
Refs #12663 -- Removed deprecated Model._meta methods.
2015-09-23 19:31:09 -04:00
Alex Hill
134ca4d438
Fixed #24509 -- Added Expression support to SQLInsertCompiler
2015-09-22 23:35:24 +10:00
Josh Smeaton
534aaf56f4
Fixed #24629 -- Unified Transform and Expression APIs
2015-09-21 19:56:24 +10:00
Mariusz Felisiak
6f1b09bb5c
Made assorted improvements to the Oracle documentation.
2015-09-18 09:47:32 -04:00
Renato Oliveira
e3720b990a
Fixed #25382 -- Removed obsolete references to DateQuerySet.
2015-09-11 12:16:06 -04:00
Tim Graham
7c0850028f
Documented a limitation of Options.required_db_features.
2015-09-03 13:37:39 -04:00
Adam Brenecki
52a190b657
Fixed #24988 -- Documented passing a dictionary of ValidationErrors to ValidationError
2015-08-13 14:17:02 -04:00
Tim Graham
5980b05c1f
Fixed #25160 -- Moved unsaved model instance data loss check to Model.save()
...
This mostly reverts 5643a3b51b
and
81e1a35c36
.
Thanks Carl Meyer for review.
2015-08-10 08:51:32 -04:00
Caio Ariede
ec9004728e
Fixed #25175 -- Renamed the postgresql_psycopg2 database backend to postgresql.
2015-08-07 09:33:17 -04:00
Tim Graham
e8cd65f829
Fixed #25213 -- Discouraged use of QuerySet.extra()
...
Thanks Anssi Kääriäinen for the draft text and Simon Charette
for review.
2015-08-05 08:01:11 -04:00
Tim Graham
97fa7fe961
Fixed #25212 -- Documented the RawSQL expression.
2015-08-05 07:54:54 -04:00
Alasdair Nicol
b792c4804b
Removed unnecessary F() from Func expressions docs
2015-07-31 01:40:35 +01:00
Simon Charette
6a46f23957
Refs #18556 -- Fixed a typo in the related manager add() method docs.
2015-07-27 22:50:13 -04:00
Tim Graham
adc0c4fbac
Fixed #18556 -- Allowed RelatedManager.add() to execute 1 query where possible.
...
Thanks Loic Bistuer for review.
2015-07-28 09:28:25 +07:00
Flavio Curella
c2e70f0265
Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField
2015-07-27 18:28:13 -04:00
Tim Graham
87d55081ea
Fixed #25159 -- Removed brackets from class/function/method signatures in docs.
...
Thanks hellbeast for the initial patch.
2015-07-27 10:32:47 -04:00
Tim Graham
b60375d4bb
Fixed #25129 -- Made model instance defaults work with migrations (refs #24919 ).
2015-07-21 09:19:40 -04:00
Edward Henderson
f8cc464452
Fixed #16501 -- Added an allow_unicode parameter to SlugField.
...
Thanks Flavio Curella and Berker Peksag for the initial patch.
2015-07-17 13:48:58 -04:00
Luke
fd869cceac
Fixed mistake in Model.from_db() example.
2015-07-03 09:08:22 -04:00
William Schwartz
9a5cfa05a0
Fixed #24997 -- Enabled bulk_create() on proxy models
2015-07-02 13:53:51 -04:00
Tim Graham
aaacaeb096
Renamed RemovedInDjangoXYWarnings for new roadmap.
...
Forwardport of ae1d663b79
from stable/1.8.x plus more.
2015-06-24 16:08:20 -04:00
johannes.linke
27c839e0fc
Fixed #24881 -- Clarified Meta.order_with_respect_to documentation
2015-06-19 07:01:54 -04:00
Adam Chainz
d34d39ade7
Fixed #24894 -- Added contrib.postgres.functions.TransactionNow
2015-06-15 14:03:17 -04:00
Matt Deacalion Stevens
77f3d7adb1
Clarified the default form widgets for model number fields in docs
2015-06-09 12:33:01 -04:00
Alasdair Nicol
1f5b067710
Fixed #24952 -- Fixed example SQL in Func() expressions docs
2015-06-08 15:14:15 +01:00
Tim Graham
6b41834855
Minor edits to Greatest/Least docs; refs #24767 .
2015-06-05 11:40:10 -04:00
Yamila Moreno
cbe4efcbc1
Fixed #22571 -- Added clarification about auto_now_add=True
2015-06-05 09:56:02 -04:00
Tim Graham
2fbea621e6
Capitalized "Python" in docs.
2015-06-05 08:24:53 -04:00
Ian Foote
14dead04ac
Fixed #24925 -- Document using Coalesce on MySQL
...
Add warning for using Coalesce with python values on MySQL and document
workaround.
2015-06-05 11:18:58 +01:00
Ian Foote
4ab53a558a
Fixed #24767 -- Added Greatest and Least expressions
...
Greatest and Least are row-level Function versions of Min and Max.
2015-06-05 11:15:33 +01:00
Matthew Somerville
2dc93bb10a
Fixed #22316 -- Added time filters to TimeField on SQLite.
...
This was implemented for non-SQLite backends in 1.7 (as a
side effect of #16187 ).
2015-06-04 22:27:13 -04:00
Adam Chainz
23048d186c
Fixed #24866 -- Added Now() database function
2015-06-02 17:59:01 -04:00
Jon Dufresne
44f3ee7716
Fixed #9596 -- Added date transform for DateTimeField.
2015-06-02 08:49:10 -04:00
Przemysław Suliga
d29ed3f355
Fixed #24880 -- Added more explicit docs on select_for_update() on SQLite.
2015-06-01 08:53:12 -04:00
Alexander Sosnovskiy
04e8d890ae
Fixed #16891 -- Made Model/QuerySet.delete() return the number of deleted objects.
2015-05-22 13:27:16 -04:00
David Krisch
1a62f19707
Fixed #24763 -- Moved DoesNotExist exception to model docs.
2015-05-08 13:05:50 -04:00
Ian Foote
756a727252
Fixed typo in docs/ref/models/expressions.txt
2015-05-07 20:15:24 -04:00
Luis Del Giudice
69ddc1b3da
Fixed #24693 -- Added label and label_lower property to Model._meta
2015-05-02 16:58:18 +02:00
Tim Graham
2b086229a2
Fixed #24665 -- Clarified model field flag defaults.
2015-04-29 20:35:22 -04:00
Tim Graham
2d76b61dc2
Fixed #24649 -- Allowed using Avg aggregate on non-numeric field types.
2015-04-25 13:06:14 -04:00
Nicolas Noé
37682368a6
Fixed #24656 -- Added missing imports to query expressions doc.
2015-04-24 10:54:19 -04:00
Richard Eames
dd99f57710
Fixed #24613 -- Added example to QuerySet.defer() documentation
2015-04-22 19:18:57 -04:00
Jon Dufresne
b5e0eede40
Fixed #22394 -- Refactored built-in datetime lookups to transforms.
2015-04-20 15:11:11 -04:00
Neal Todd
d84f01ff08
Amended get_all_related_objects() backwards compatible replacement.
2015-04-20 09:50:17 -04:00
Tim Graham
e9fdecf984
Removed DateTimeQuerySet from docs.
...
Obsolete since refs #23867 .
2015-04-18 10:14:22 -04:00
Claude Paroz
8097e54832
Fixed #23879 -- Allowed model migration skip based on feature/vendor
...
Thanks Carl Meyer for the report and review, and Tim Graham for the
review.
2015-04-18 15:17:49 +02:00
lampslave
800240cb1d
Fixed typo in docs/ref/models/expressions.txt
2015-04-07 13:58:39 -04:00
Christopher Luc
8119876d4a
Improved docs for timezone handling for auto_now and auto_now_add
...
Thanks djbug for the report and Aymeric Augustin and Carl Meyer for the
review.
2015-03-29 22:32:05 +02:00
Matt Seymour
98c5370ef6
Fixed #24510 -- Clarified FileField.upload_to docs.
2015-03-26 19:21:12 -04:00
Fabio Natali
cb506aed2a
Fixed #23814 -- Documented apps refactored out of Django.
2015-03-25 08:46:23 -04:00
Iacopo Spalletti
87fed94440
Fixed #23814 -- Pointed localflavor documentation to external package
...
Edited localflavor doc to point to the external package documentation,
leaving just the 'How to migrate' section in Django.
2015-03-22 15:31:54 +01:00
Josh Smeaton
02a2943e4c
Fixed #24485 -- Allowed combined expressions to set output_field
2015-03-22 17:36:55 +11:00
Karl Hobley
81e1a35c36
Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed.
2015-03-18 19:00:09 -04:00
Josh Smeaton
88d798d71a
Refs #24485 -- Renamed some expression types
2015-03-17 08:40:18 -04:00
Andriy Sokolovskiy
81c2d9f60b
Fixed #15579 -- Added ability to delete only child models in multi-table inheritance.
2015-03-17 08:33:16 -04:00
Josh Smeaton
820381d38b
Fixed #24486 -- Documented method to provide output_field to mixed F expressions
2015-03-16 11:54:27 -04:00
Tim Graham
b9d9ab23bd
Refs #24462 -- Emphasized that order_by() clears previous ordering.
2015-03-13 15:40:25 -04:00
Steven Das
53bc6e2e98
Fixed typo in docs/ref/models/fields.txt
2015-03-12 19:16:05 -04:00
Sean Wang
a3e89f13df
Fixed #24414 -- Added examples of Prefetch object usage to the docs.
2015-03-11 12:38:25 -04:00
Floris den Hengst
b9b8411129
Fixed #24432 -- Added docs for ManyToManyFields that reside in and refer to the same model.
2015-03-09 20:44:55 -04:00
Marc Tamlyn
32d4db66b9
Update converters to take a consistent set of parameters.
...
As suggested by Anssi. This has the slightly strange side effect of
passing the expression to Expression.convert_value has the expression
passed back to it, but it allows more complex patterns of expressions.
2015-02-20 11:35:52 +00:00
Loic Bistuer
18c0aaa912
Fixed #24289 -- Reversed usage of Field.many_to_one and one_to_many.
...
Thanks Carl Meyer and Tim Graham for the reviews and to all involved
in the discussion.
2015-02-14 02:28:24 +07:00
Josh Smeaton
e2d6e14662
Refs #14030 -- Improved expression support for python values
2015-02-12 08:46:25 +11:00
Aymeric Augustin
1b8af4cfa0
Disallowed importing concrete models without an application.
...
Removed fragile algorithm to find which application a model belongs to.
Fixed #21680 , #21719 . Refs #21794 .
2015-02-10 21:41:19 +01:00
Loic Bistuer
71ada3a8e6
Fixed #6707 -- Added RelatedManager.set() and made descriptors' __set__ use it.
...
Thanks Anssi Kääriäinen, Carl Meyer, Collin Anderson, and Tim Graham for the reviews.
2015-02-05 12:45:08 +07:00