summaryrefslogtreecommitdiff
path: root/docs/ref/models/fields.txt
AgeCommit message (Collapse)Author
2015-12-01[1.9.x] Fixed #25778 -- Updated docs links to use https when available.Jon Dufresne
Backport of 7aabd6238028f4bb78d0687bbccc97bcf634e28b from master
2015-11-24[1.9.x] Clarified default value for DateField to emulate auto_now_add.Bulgantamir Gankhuyag
Backport of 8bce6fa637952342278c59d06520611e3ba80cbb from master
2015-11-19[1.9.x] Corrected GenericIPAddressField protocol parameter doc.areski
Backport of 1e7da99ea6a78c47d3b5d4e9ce82df1ee4024ada from master
2015-08-10Fixed #25160 -- Moved unsaved model instance data loss check to Model.save()Tim Graham
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and 81e1a35c364e5353d2bf99368ad30a4184fbb653. Thanks Carl Meyer for review.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-27Fixed #25159 -- Removed brackets from class/function/method signatures in docs.Tim Graham
Thanks hellbeast for the initial patch.
2015-07-21Fixed #25129 -- Made model instance defaults work with migrations (refs #24919).Tim Graham
2015-07-17Fixed #16501 -- Added an allow_unicode parameter to SlugField.Edward Henderson
Thanks Flavio Curella and Berker Peksag for the initial patch.
2015-06-09Clarified the default form widgets for model number fields in docsMatt Deacalion Stevens
2015-06-05Fixed #22571 -- Added clarification about auto_now_add=TrueYamila Moreno
2015-04-29Fixed #24665 -- Clarified model field flag defaults.Tim Graham
2015-03-29Improved docs for timezone handling for auto_now and auto_now_addChristopher Luc
Thanks djbug for the report and Aymeric Augustin and Carl Meyer for the review.
2015-03-26Fixed #24510 -- Clarified FileField.upload_to docs.Matt Seymour
2015-03-25Fixed #23814 -- Documented apps refactored out of Django.Fabio Natali
2015-03-22Fixed #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.
2015-03-18Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed.Karl Hobley
2015-03-12Fixed typo in docs/ref/models/fields.txtSteven Das
2015-03-09Fixed #24432 -- Added docs for ManyToManyFields that reside in and refer to ↵Floris den Hengst
the same model.
2015-02-20Update 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.
2015-02-14Fixed #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.
2015-02-03Fixed #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.
2015-02-01Removed versionadded/changed notes for 1.7.Tim Graham
2015-01-19Removed IPAddressField per deprecation timeline; refs #20439.Tim Graham
2015-01-18Removed support for syncing apps without migrations per deprecation timeline.Tim Graham
Kept support for creating models without migrations when running tests (especially for Django's test suite).
2015-01-17Removed support for custom SQL per deprecation timeline.Tim Graham
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