summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
2015-03-29[1.8.x] Fixed #24281 -- Improved docs for timezone handling for auto_now and ↵Christopher Luc
auto_now_add Thanks djbug for the report and Aymeric Augustin and Carl Meyer for the review. Backport of 8119876d4a533fbc2ba4d1c30eaddbcc28119488 from master
2015-03-22[1.8.x] Fixed #23814 -- Pointed localflavor documentation to external packageIacopo Spalletti
Edited localflavor doc to point to the external package documentation, leaving just the 'How to migrate' section in Django. Backport of 87fed9444033533ad7105c4b1e4ffc5d7854a2c6 from master.
2015-03-22Fixed #24485 -- Allowed combined expressions to set output_fieldJosh Smeaton
2015-03-18[1.8.x] Fixed #24495 -- Allowed unsaved model instance assignment check to ↵Karl Hobley
be bypassed. Backport of 81e1a35c364e5353d2bf99368ad30a4184fbb653 from master
2015-03-17[1.8.x] Refs #24485 -- Renamed some expression typesJosh Smeaton
Backport of 88d798d71a20662bdf5335f0586fb9eb6e660c57 from master
2015-03-16[1.8.x] Fixed #24486 -- Documented method to provide output_field to mixed F ↵Josh Smeaton
expressions Backport of 820381d38bc02ea8b92837ce869e7332a7db9913 from master
2015-03-13[1.8.x] Refs #24462 -- Emphasized that order_by() clears previous ordering.Tim Graham
Backport of b9d9ab23bdcc404708aada664e718a9d56415ca3 from master
2015-03-12[1.8.x] Fixed typo in docs/ref/models/fields.txtSteven Das
Backport of 53bc6e2e98b4889082049f50718b13f8d5d84b6b from master
2015-03-11[1.8.x] Fixed #24414 -- Added examples of Prefetch object usage to the docs.Sean Wang
Backport of a3e89f13dfb1f22a26ead8b06b37695598a4421a from master
2015-03-09[1.8.x] Fixed #24432 -- Added docs for ManyToManyFields that reside in and ↵Floris den Hengst
refer to the same model. Backport of b9b8411129efe13642cef1fc6bbfc62bed717352 from master
2015-02-20[1.8.x] Update converters to take a consistent set of parameters.Marc Tamlyn
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. Backport of 32d4db66b9 from master
2015-02-14[1.8.x] Fixed #24289 -- Reversed usage of Field.many_to_one and one_to_many.Loic Bistuer
Thanks Carl Meyer and Tim Graham for the reviews and to all involved in the discussion. Backport of 18c0aaa9123579375294fcc4a8ee7e3530176b88 from master
2015-02-12[1.8.x] Refs #14030 -- Improved expression support for python valuesJosh Smeaton
Backport of e2d6e14662d780383e18066a3182155fb5b7747b from master
2015-02-04[1.8.x] Fixed typos of "select_related" in docs and tests.Josh Schneier
Backport of 7d363ed43247a80d2b764723e1bf6e0e6da4e82f from master
2015-02-03[1.8.x] Fixed #23617 -- Added get_pk_value_on_save()Anssi Kääriäinen
The method is mainly intended for use with UUIDField. For UUIDField we want to call the field's default even when primary key value is explicitly set to None to match the behavior of AutoField. Thanks to Marc Tamlyn and Tim Graham for review. Backport of 8adc59038cdc6ce4f9170e4de2d716d940e136b3 from master
2015-01-24[1.8.x] Fixed #24190 -- Clarified len(queryset)Collin Anderson
Backport of ee23e03637aa8b82311f93b0a660574a0512891a from master
2015-01-12Fixed #24031 -- Added CASE expressions to the ORM.Michał Modzelewski
2015-01-13Fixed #24060 -- Added OrderBy ExpressionsJosh Smeaton
2015-01-12Fixed #23878 -- Moved Query and Prefetch documentationNg Zhi An
2015-01-08Fixed #24020 -- Refactored SQL compiler to use expressionsAnssi Kääriäinen
Refactored compiler SELECT, GROUP BY and ORDER BY generation. While there, also refactored select_related() implementation (get_cached_row() and get_klass_info() are now gone!). Made get_db_converters() method work on expressions instead of internal_type. This allows the backend converters to target specific expressions if need be. Added query.context, this can be used to set per-query state. Also changed the signature of database converters. They now accept context as an argument.
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2014-12-29Fixed a vesionadded directive.Florian Apolloner
2014-12-27Fixed #23753 -- Added a suite of SQL FunctionsJosh Smeaton
Added functions and tests Added docs and more tests Added TextField converter to mysql backend Aliased Value as V in example docs and tests Removed unicode_compatible in example Fixed console emulation in examples
2014-12-24Fixed #24041 -- Documented effect of changing a model instance's primary key.Helen Sherwood-Taylor
2014-12-23Fixed #24033 -- Use interval type on Oracle.Marc Tamlyn
Use INTERVAL DAY(9) TO SECOND(6) for Durationfield on Oracle rather than storing as a NUMBER(19) of microseconds. There are issues with cx_Oracle which require some extra data manipulation in the database backend when constructing queries, but it handles the conversion back to timedelta objects cleanly. Thanks to Shai for the review.
2014-12-20Fixed #2443 -- Added DurationField.Marc Tamlyn
A field for storing periods of time - modeled in Python by timedelta. It is stored in the native interval data type on PostgreSQL and as a bigint of microseconds on other backends. Also includes significant changes to the internals of time related maths in expressions, including the removal of DateModifierNode. Thanks to Tim and Josh in particular for reviews.
2014-12-19Used https for most *.python.org linksClaude Paroz
2014-12-12Fixed #23941 -- Removed implicit decimal formatting from expressions.Josh Smeaton
2014-12-08Fixed #23974 -- Clarified wording of FileField.save/delete save parameter.Tim Graham
Thanks GreenAsJade.
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-12-06Fixed #23965 -- Mentioned that FieldFile inherits from FileTim Graham
2014-11-28Fixed #901 -- Added Model.refresh_from_db() methodAnssi Kääriäinen
Thanks to github aliases dbrgn, carljm, slurms, dfunckt, and timgraham for reviews.
2014-11-21Fixed #23865 -- documented how to assign errors to a field in Model.clean()Alasdair Nicol
Also added a unit test wit the simpler syntax which we have documented, where the dictionary values are strings.
2014-11-20Fixed #23817 -- Updated docs on QuerySet evaluationMichal Petrucha
Removed inaccurate info about partial evaluation after refs #18702. Added information on modifying sliced QuerySets; refs #22503.
2014-11-16Renamed qn to compilerJosh Smeaton
2014-11-15Fixed #14030 -- Allowed annotations to accept all expressionsJosh Smeaton
2014-11-12Fixed #23774 -- Clarified QuerySet.order_by() and related models.Tim Graham
2014-11-03Fixed versionchanged indentation in docs/.Berker Peksag
2014-10-31Fixed #23732 -- Corrected and enhanced select_related() docs.Tim Graham
Thanks Daniele Procida for the report and review.
2014-10-30Fixed #23725 -- Substituted AUTH_USER_MODEL for User in docs.Raul Cumplido
2014-10-28Fixed spelling errors in docs.Tim Graham
2014-10-28Fixed #23493 -- Added bilateral attribute to TransformThomas Chaumeny
2014-10-27Fixed QuerySet datetimes argument name in docs.Oliver Meinusch
2014-10-18Fixed #23676 -- Rearranged sentence; "by default" applies only to max lengthJon Dufresne
2014-10-06Fixed #23602 -- Add comment on get_absolute_url regarding user inputMarkus Holtermann
2014-10-04Fix formatting error in UUIDField docs.Marc Tamlyn
2014-10-01Added flat=False to signature of QuerySet.values_list()jnothman
2014-09-26Fixed #23460 -- Added literal `%s` support to extra() QuerySets.Matt Robenolt
2014-09-16Fixed #19463 -- Added UUIDFieldMarc Tamlyn
Uses native support in postgres, and char(32) on other backends.
2014-09-08Fixed #23281 -- Added "concrete model" to glossary.Tim Graham
Thanks knowledgepoint-devs for the suggestion.