summaryrefslogtreecommitdiff
path: root/docs/ref/models
AgeCommit message (Collapse)Author
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.
2014-09-05Fixed #22534: Reinforce swappable documentationAndrew Godwin
2014-09-04Fixed documentation links to Query Expression API.Thomas Chaumeny
2014-09-03Fixed #18757, #14462, #21565 -- Reworked database-python type conversionsMarc Tamlyn
Complete rework of translating data values from database Deprecation of SubfieldBase, removal of resolve_columns and convert_values in favour of a more general converter based approach and public API Field.from_db_value(). Now works seamlessly with aggregation, .values() and raw queries. Thanks to akaariai in particular for extensive advice and inspiration, also to shaib, manfre and timograham for their reviews.
2014-08-29Corrected a usage example of `related_query_name`.Simon Charette
Thanks to Petr Glotov for spotting this.
2014-08-19Fixed #17272 -- Documented that non-editable fields are skipped during model ↵Tim Graham
validation. Thanks mitar for the report.
2014-08-19Fixed #4991 -- Emphasized XSS ramifications of help_text not being escaped.Tim Graham
2014-08-14Fixed #23224 - Documented EmailValidator.areski
2014-08-02Updated MySQL links to version 5.6.Tim Graham
2014-07-30Fixed #23067 -- Updated docs to use django-adminChristoph Heer
2014-07-30Fixed #23134 -- Fixed typos in docs/ref/models/querysets.txt.Tim Graham
Thanks Josh Kupershmidt.
2014-07-28Fixed #22491 -- documented how select_for_update() should be tested.Moayad Mardini
Thanks Andreas Pelme for the report.
2014-07-26Fixed #22553 -- Added refreshing queryset info to docs.David Hoffman
2014-07-24Fixed #23094 -- Removed redundant argument in select_related() example.Tim Graham
Thanks thegeekofalltrades at gmail.com for the report.
2014-07-10Removed docs for @permalink decorator.Tim Graham
It's been marked as "not recommended" since 1.6. Anyone still using it may refer to older versions of the docs.
2014-07-10Fixed #22809 -- Added model Field API reference.Jorge C. Leitão
Thanks to @timgraham for the review.
2014-07-09Fixed #19671 -- Added warnings that null and validators are ignored for ↵Anubhav Joshi
ManyToManyField. Thanks Loic Bistuer and Tim Graham for help and review.
2014-07-09Fixed #22351 -- Removed usage of lambdas in model field options.Tim Graham
Thanks claudep for review.
2014-07-08Fixed #22812 -- Refactored lookup API documentation.Jorge C. Leitão
Thanks Anssi and Tim for reviews.
2014-07-04Fixed #20631 -- Increased the default EmailField max_length to 254.Tim Graham
Thanks pmartin for the report.