summaryrefslogtreecommitdiff
path: root/docs/ref/models/fields.txt
AgeCommit message (Collapse)Author
2015-08-10[1.8.x] Fixed #25160 -- Moved unsaved model instance data loss check to ↵Tim Graham
Model.save() This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and 81e1a35c364e5353d2bf99368ad30a4184fbb653. Thanks Carl Meyer for review. Backport of 5980b05c1fad69eef907e0076aa2dc837edab529 from master
2015-07-27[1.8.x] Fixed #25159 -- Removed brackets from class/function/method ↵Tim Graham
signatures in docs. Thanks hellbeast for the initial patch. Backport of 87d55081ea398c65b2503d22ed3907a9175ec729 from master
2015-06-09[1.8.x] Clarified the default form widgets for model number fields in docsMatt Deacalion Stevens
Backport of 77f3d7adb1d56d4eb5d22a85e8d383602f937790 from master
2015-06-05[1.8.x] Fixed #22571 -- Added clarification about auto_now_add=TrueYamila Moreno
Backport of cbe4efcbc13ad402bf1f1a94b02a8ec93f20327d from master
2015-04-29[1.8.x] Fixed #24665 -- Clarified model field flag defaults.Tim Graham
Backport of 2b086229a2a6c786e32da37b6b122c2cc894450f from master
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-18[1.8.x] Fixed #24495 -- Allowed unsaved model instance assignment check to ↵Karl Hobley
be bypassed. Backport of 81e1a35c364e5353d2bf99368ad30a4184fbb653 from master
2015-03-12[1.8.x] Fixed typo in docs/ref/models/fields.txtSteven Das
Backport of 53bc6e2e98b4889082049f50718b13f8d5d84b6b 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-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-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-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-08Fixed #23974 -- Clarified wording of FileField.save/delete save parameter.Tim Graham
Thanks GreenAsJade.
2014-12-06Fixed #23965 -- Mentioned that FieldFile inherits from FileTim Graham
2014-10-30Fixed #23725 -- Substituted AUTH_USER_MODEL for User in docs.Raul Cumplido
2014-10-18Fixed #23676 -- Rearranged sentence; "by default" applies only to max lengthJon Dufresne
2014-10-04Fix formatting error in UUIDField docs.Marc Tamlyn
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-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-07-30Fixed #23067 -- Updated docs to use django-adminChristoph Heer
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-04Fixed #20631 -- Increased the default EmailField max_length to 254.Tim Graham
Thanks pmartin for the report.
2014-06-18Fixed #14481 -- Documented implicit "through" class created by ManyToManyField.Jorge C. Leitão
Thanks to jonathanmorgan for the report and initial patch.
2014-06-15Fixed #22660: Doc'd you can't have unmigrated apps depend on migratedAndrew Godwin
2014-06-12Fixed #22813 -- Updated Pillow URL in documentationClaude Paroz
2014-05-16Fixed #21798 -- Added check for DateTime mutually exclusive optionsDaniel Pyrathon
Added DateTimeCheckMixin to avoid the use of default, auto_now, and auto_now_add options together. Added the fields.E151 Error that is raised if one or more of these options are used together.
2014-04-30Fixed #22537 -- Add tests and improved docs for field subclass with choices.Mike Fogel
2014-03-24Removed versionadded/changed annotations for 1.6.Tim Graham
2014-03-24Fixed #22048 - Enhanced docs to cover nonexistent one-to-one relationships.Adam Kaliński
Thanks EvilDMP for the suggestion.
2014-03-21Removed PIL compatability layer per deprecation timeline.Tim Graham
refs #19934.
2014-03-11Fixed #22217 - ManyToManyField.through_fields fixes.Akis Kesoglou
- Docs description of arguments mix up. - Keep it from erroneously masking E332 check. - Add checks E338 and E339, tweak message of E337.
2014-03-05Fixed #14549 - Removed restriction of single FKs on intermediary tablesAkis Kesoglou
Thanks to Loic Bistuer for review. Minor changes to error messages done by committer.
2014-03-05Fixed #22206 -- Passed models.TextField.max_length to forms.CharField.maxlengthChris Wilson
2014-02-28Fixed doc typos.Tim Graham
2014-02-25Fixed #22145 -- Clarified docs on Field.blank and Field.null options.navneet suman
Thanks skipjack at peru.com for the suggestion.
2014-02-11Fixed #2445 -- Allowed limit_choices_to attribute to be a callable.Christopher Adams
ForeignKey or ManyToManyField attribute ``limit_choices_to`` can now be a callable that returns either a ``Q`` object or a dict. Thanks michael at actrix.gen.nz for the original suggestion.