summaryrefslogtreecommitdiff
path: root/docs/ref/models/options.txt
AgeCommit message (Collapse)Author
2018-12-29Fixed #30063 -- Doc'd that Meta.unique_together may be deprecated in favor ↵Paveł Tyślacki
of Meta.constraints.
2018-11-15Used auto-numbered lists in documentation.François Freitag
2018-11-13Generalized check constraint docs for other constraints.Simon Charette
2018-10-02Refs #11964 -- Changed CheckConstraint() signature to use keyword-only ↵Simon Charette
arguments. Also renamed the `constraint` argument to `check` to better represent which part of the constraint the provided `Q` object represents.
2018-09-13Refs #14357 -- Deprecated Meta.ordering affecting GROUP BY queries.Ramiro Morales
Thanks Ramiro Morales for contributing to the patch.
2018-07-10Fixed #11964 -- Added support for database check constraints.Ian Foote
2018-05-17Removed versionadded/changed annotations for 2.0.Tim Graham
2018-05-16Fixed #8936 -- Added a view permission and a read-only admin.olivierdalang
Co-authored-by: Petr Dlouhy <petr.dlouhy@email.cz> Co-authored-by: Olivier Dalang <olivier.dalang@gmail.com>
2017-09-22Removed versionadded/changed annotations for 1.11.Tim Graham
2017-09-05Fixed #11557 -- Added support for a list of fields in Meta.get_latest_by and ↵François Freitag
QuerySet.earliest()/latest().
2017-09-05Fixed #28335 -- Allowed query expressions in Meta.ordering.Dima Kudosh
2017-08-08Fixed #28471 -- Clarified that Meta.indexes is preferred to index_together.Tim Graham
2017-03-20Removed extra characters in docs header underlines.Mariusz Felisiak
2017-01-17Removed versionadded/changed annotations for 1.10.Tim Graham
2017-01-17Refs #26230 -- Removed support for model name query lookups when using ↵Tim Graham
Meta.default_related_name. Per deprecation timeline.
2016-08-05Fixed #26808 -- Added Meta.indexes for class-based indexes.Akshesh
* Added the index name to its deconstruction. * Added indexes to sqlite3.schema._remake_table() so that indexes aren't dropped when _remake_table() is called. Thanks timgraham & MarkusH for review and advice.
2016-07-25Fixed #26925 -- Linked aggregation ordering topic from Meta.ordering docs.Tim Graham
2016-07-15Fixed inconsistent indentation in docs/ref/models/options.txtTim Graham
2016-05-20Removed versionadded/changed annotations for 1.9.Tim Graham
2016-05-17Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify ↵Loïc Bistuer
models' default and base managers. This deprecates use_for_related_fields. Old API: class CustomManager(models.Model): use_for_related_fields = True class Model(models.Model): custom_manager = CustomManager() New API: class Model(models.Model): custom_manager = CustomManager() class Meta: base_manager_name = 'custom_manager' Refs #20932, #25897. Thanks Carl Meyer for the guidance throughout this work. Thanks Tim Graham for writing the docs.
2016-03-31Fixed #26438 -- Fixed multiple .objects typos in the docs.Simon Charette
Thanks Pablo Oubiña for the report.
2016-03-03Fixed #26310 -- Documented that a queryset ordering must be specified to ↵Tim Graham
ensure ordered results. Thanks Simon Charette for review.
2016-02-27Fixed #26230 -- Made default_related_name affect related_query_name.chenesan
2015-09-23Removed versionadded/changed annotations for 1.8.Tim Graham
2015-09-03Documented a limitation of Options.required_db_features.Tim Graham
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-06-19Fixed #24881 -- Clarified Meta.order_with_respect_to documentationjohannes.linke
2015-05-02Fixed #24693 -- Added label and label_lower property to Model._metaLuis Del Giudice
2015-04-18Fixed #23879 -- Allowed model migration skip based on feature/vendorClaude Paroz
Thanks Carl Meyer for the report and review, and Tim Graham for the review.
2015-02-10Disallowed importing concrete models without an application.Aymeric Augustin
Removed fragile algorithm to find which application a model belongs to. Fixed #21680, #21719. Refs #21794.
2015-02-01Removed versionadded/changed notes for 1.7.Tim Graham
2014-12-29Fixed a vesionadded directive.Florian Apolloner
2014-11-03Fixed versionchanged indentation in docs/.Berker Peksag
2014-06-18Fixed #22778 -- Added a model Meta option to define default_related_name.Renaud Parent
Thanks jorgecarleitao and mmardini for reviews.
2014-03-24Removed versionadded/changed annotations for 1.6.Tim Graham
2014-03-01Fixed #22172 -- Allowed index_together to be a single list (rather than list ↵Anubhav Joshi
of lists).. Thanks EmilStenstrom for the suggestion.
2014-02-09Removed double word in model docsClaude Paroz
2014-02-08Fixed #16192 -- Made unique error messages in ModelForm customizable.Loic Bistuer
Overriding the error messages now works for both unique fields, unique_together and unique_for_date. This patch changed the overriding logic to allow customizing NON_FIELD_ERRORS since previously only fields' errors were customizable. Refs #20199. Thanks leahculver for the suggestion.
2014-01-01Updated release notes on app_label.Aymeric Augustin
Django determines automatically which application models belong to, provided the application can be imported without importing models.
2013-11-21Fixed #21479 -- Favor 'migrate' over 'syncdb' in the docs.Loic Bistuer
2013-10-23Fixed #13245: Explained Oracle's behavior w.r.t db_tableShai Berger
and how to prevent table-name truncation Thanks russellm & timo for discussion, and timo for review.
2013-09-09Fixed spelling; refs #16895.Tim Graham
Thanks Panagiotis Issaris for the report.
2013-09-09Fixed #16895 -- Warned about cost of QuerySet orderinge0ne
Thanks outofculture at gmail.com for the suggestion.
2013-08-30Fixed typo in docs/ref/models/options.txtTim Graham
2013-08-30Fixed #20988 -- Added model meta option select_on_saveAnssi Kääriäinen
The option can be used to force pre 1.6 style SELECT on save behaviour. This is needed in case the database returns zero updated rows even if there is a matching row in the DB. One such case is PostgreSQL update trigger that returns NULL. Reviewed by Tim Graham. Refs #16649
2013-08-19Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: docs/ref/django-admin.txt
2013-08-19Removed versionadded/changed annotations for 1.5Tim Graham
2013-08-09Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/db/models/options.py
2013-08-09Fixed #9057 -- Added default_permissions model meta option.Tim Graham
Thanks hvendelbo for the suggestion and koenb for the draft patch.
2013-08-09Merge remote-tracking branch 'core/master' into schema-alterationAndrew Godwin
Conflicts: django/core/management/commands/flush.py django/core/management/commands/syncdb.py django/db/models/loading.py docs/internals/deprecation.txt docs/ref/django-admin.txt docs/releases/1.7.txt