summaryrefslogtreecommitdiff
path: root/docs/ref
AgeCommit message (Collapse)Author
2014-02-06Fixed #17005 -- Added CurrentSiteMiddleware to set the current site on each ↵Christopher Medrela
request. Thanks jordan at aace.org for the suggestion.
2014-02-04Made some PEP8 fixes in docs/ref/forms/widgets.txtTim Graham
Thanks Siecje.
2014-02-02Added a note about a possible name clash.Aymeric Augustin
Thanks Russell for the advice.
2014-02-02Fixed typo.Aymeric Augustin
2014-01-29Fix typo CRSF -> CSRFIan Foote
2014-01-27Fixed #21874 -- Require Django applications to have a filesystem path.Carl Meyer
Wherever possible this filesystem path is derived automatically from the app module's ``__path__`` and ``__file__`` attributes (this avoids any backwards-compatibility problems). AppConfig allows specifying an app's filesystem location explicitly, which overrides all autodetection based on ``__path__`` and ``__file__``. This permits Django to support any type of module as an app (namespace packages, fake modules, modules loaded by other hypothetical non-filesystem module loaders), as long as the app is configured with an explicit filesystem path. Thanks Aymeric for review and discussion.
2014-01-26Fixed #19774 -- Deprecated the contenttypes.generic module.Simon Charette
It contained models, forms and admin objects causing undesirable import side effects. Refs #16368. Thanks to Ramiro, Carl and Loïc for the review.
2014-01-26Fixed #21702 -- get_model('app_label.ModelName').Aymeric Augustin
Also added tests for get_model.
2014-01-26Moved RequestSite and get_current_site.Aymeric Augustin
Following the app-loading refactor, these objects must live outside of django.contrib.sites.models because they must be available without importing the django.contrib.sites.models module when django.contrib.sites isn't installed. Refs #21680. Thanks Carl and Loic for reporting this issue.
2014-01-25Docs correction: apps loaded from eggs do not have appconfig.path None.Carl Meyer
2014-01-25Fixed #17304 -- Allow single-path and configured-path namespace packages as ↵Carl Meyer
apps. Also document the conditions under which a namespace package may or may not be a Django app, and raise a clearer error message in those cases where it may not be. Thanks Aymeric for review and consultation.
2014-01-25Fixed #21829 -- Added default AppConfigs.Aymeric Augustin
Thanks Russell for the report, Marc for the initial patch, Carl for the final review, and everyone who contributed to the design discussion.
2014-01-23Fixed #21865 -- Incorrect signs in documented example.Marc Tamlyn
Maths is hard.
2014-01-23Fixed #21864 -- Fixed missing quote in custom lookup example.Baptiste Mispelon
Thanks to Chris Barna for the report.
2014-01-23Fixed some punctuation; thanks Chris Jerdonek.Tim Graham
2014-01-22Always use parentheses when documenting a method with no arguments.Baptiste Mispelon
2014-01-22Don't show `self` in the list of arguments of a method.Baptiste Mispelon
This is consistent with Python's official documentation and it's a sphinx recommendation too[1]. [1] http://sphinx-doc.org/markup/desc.html#dir-method Refs #21855.
2014-01-22Fixed #21529 -- Noted that {% url %} encodes its output (refs #13260).Tim Graham
2014-01-22Fixed some markup that caused broken links in the static files docs.Tim Graham
2014-01-20Added ManifestStaticFilesStorage to staticfiles contrib app.Jannis Leidel
It uses a static manifest file that is created when running collectstatic in the JSON format.
2014-01-20Added a missing command to the command line examples for check.Russell Keith-Magee
Thanks to Bruno Renie for the report.
2014-01-20Corrected documentation typo.Russell Keith-Magee
Thanks to @cjerdonek for the report.
2014-01-20Corrected minor typo.Russell Keith-Magee
Thanks to @cjerdonek for the report.
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
2014-01-19Fixed some admin sphinx definitions so links work properly.Tim Graham
2014-01-19Implement swappable model support for migrationsAndrew Godwin
2014-01-18Fixed #21712 -- Moved autodiscover() to AdminConfig.ready().Aymeric Augustin
Thanks Marc Tamlyn for the initial version of the patch.
2014-01-18Fixed typos spotted by Claude ParozAnssi Kääriäinen
2014-01-18Fixed #16187 -- refactored ORM lookup systemAnssi Kääriäinen
Allowed users to specify which lookups or transforms ("nested lookus") are available for fields. The implementation is now class based. Squashed commit of the following: commit fa7a7195f1952a9c8dea7f6e89ee13f81757eda7 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 18 10:53:24 2014 +0200 Added lookup registration API docs commit eb1c8ce164325e0d8641f14202e12486c70efdb6 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Tue Jan 14 18:59:36 2014 +0200 Release notes and other minor docs changes commit 11501c29c9352d17f22f3a0f59d3b805913dedcc Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Jan 12 20:53:03 2014 +0200 Forgot to add custom_lookups tests in prev commit commit 83173b960ea7eb2b24d573f326be59948df33536 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Jan 12 19:59:12 2014 +0200 Renamed Extract -> Transform commit 3b18d9f3a1bcdd93280f79654eba0efa209377bd Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Jan 12 19:51:53 2014 +0200 Removed suggestion of temporary lookup registration from docs commit 21d0c7631c161fc0c67911480be5d3f13f1afa68 Merge: 2509006 f2dc442 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Jan 12 09:38:23 2014 -0800 Merge pull request #2 from mjtamlyn/lookups_3 Reworked custom lookups docs. commit f2dc4429a1da04c858364972eea57a35a868dab4 Author: Marc Tamlyn <marc.tamlyn@gmail.com> Date: Sun Jan 12 13:15:05 2014 +0000 Reworked custom lookups docs. Mostly just formatting and rewording, but also replaced the example using ``YearExtract`` to use an example which is unlikely to ever be possible directly in the ORM. commit 250900650628d1f11beadb22814abd666029fb81 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Jan 12 13:19:13 2014 +0200 Removed unused import commit 4fba5dfaa022653ffa72497258ffd8f8b7476f92 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 22:34:41 2014 +0200 Added docs to index commit 6d53963f375c77a1f287833b19b976d23f36c30b Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 22:10:24 2014 +0200 Dead code removal commit f9cc0390078e21f1ea5a7bc1f15b09f8f6b0904d Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 19:00:43 2014 +0200 A new try for docs commit 33aa18a6e3c831930bda0028222a26f9c1d96e66 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 14:57:12 2014 +0200 Renamed get_cols to get_group_by_cols commit c7d5f8661b7d364962bed2e6f81161c1b4f1bcc3 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 14:45:53 2014 +0200 Altered query string customization for backends vendors The new way is trying to call first method 'as_' + connection.vendor. If that doesn't exist, then call as_sql(). Also altered how lookup registration is done. There is now RegisterLookupMixin class that is used by Field, Extract and sql.Aggregate. This allows one to register lookups for extracts and aggregates in the same way lookup registration is done for fields. commit 90e7004ec14e15503f828cc9bde2a7dab593814d Merge: 66649ff f7c2c0a Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 13:21:01 2014 +0200 Merge branch 'master' into lookups_3 commit 66649ff891c7c73c7eecf6038c9a6802611b5d8a Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Jan 11 13:16:01 2014 +0200 Some rewording in docs commit 31b8faa62714b4b6b6057a9f5cc106c4dd73caab Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 29 15:52:29 2013 +0200 Cleanup based on review comments commit 1016159f34674c0df871ed891cde72be8340bb5d Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 28 18:37:04 2013 +0200 Proof-of-concept fix for #16731 Implemented only for SQLite and PostgreSQL, and only for startswith and istartswith lookups. commit 193cd097ca8f2cc6a911e57b8e3fb726f96ee6a6 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 28 17:57:58 2013 +0200 Fixed #11722 -- iexact=F() produced invalid SQL commit 08ed3c3b49e100ed9019831e770c25c8f61b70f9 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 21 23:59:52 2013 +0200 Made Lookup and Extract available from django.db.models commit b99c8d83c972786c6fcd0e84c9e5cb08c1368300 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 21 23:06:29 2013 +0200 Fixed review notes by Loic commit 049eebc0703c151127f4f0265beceea7b8b39e72 Merge: ed8fab7 b80a835 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 21 22:53:10 2013 +0200 Merge branch 'master' into lookups_3 Conflicts: django/db/models/fields/__init__.py django/db/models/sql/compiler.py django/db/models/sql/query.py tests/null_queries/tests.py commit ed8fab7fe8867ff3eb801c3697a426478387bb2f Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Dec 21 22:47:23 2013 +0200 Made Extracts aware of full lookup path commit 27a57b7aed91b2f346abc4a77da838bffa17c727 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 1 21:10:11 2013 +0200 Removed debugger import commit 074e0f5aca0572e368c11e6d2c73c9026e7d63d7 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 1 21:02:16 2013 +0200 GIS lookup support added commit 760e28e72bae475b442b026650969b0d182dbe53 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 1 20:04:31 2013 +0200 Removed usage of Constraint, used Lookup instead commit eac47766844b90e7d3269e7a8c012eee34ec0093 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 1 02:22:30 2013 +0200 Minor cleanup of Lookup API commit 2adf50428d59a783078b0da3d5d035106640c899 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sun Dec 1 02:14:19 2013 +0200 Added documentation, polished implementation commit 32c04357a87e3727a34f8c5e6ec0114d1fbbb303 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Nov 30 23:10:15 2013 +0200 Avoid OrderedDict creation on lookup aggregate check commit 7c8b3a32cc17b4dbca160921d48125f1631e0df4 Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Sat Nov 30 23:04:34 2013 +0200 Implemented nested lookups But there is no support of using lookups outside filtering yet. commit 4d219d4cdef21d9c14e5d6b9299d583d1975fcba Author: Anssi Kääriäinen <akaariai@gmail.com> Date: Wed Nov 27 22:07:30 2013 +0200 Initial implementation of custom lookups
2014-01-17Removed some unnecessary __exact operators in filters.Tim Graham
2014-01-17Fixed #18942 -- Clarified usage of {% get_static_prefix %}.Tim Graham
Thanks Aymeric for the suggestion.
2014-01-17Fixed #13116 -- Described scope of variables created by {% url ... as var %} ↵Tim Graham
syntax. Thanks leif_p for the suggestion.
2014-01-16Fixed #18285 -- Documented that bulk_create doesn't work with M2M relationships.Tim Graham
2014-01-16Fixed #21343 -- Noted many-to-many restrictions with intermediate model.Tim Graham
Thanks EvilDMP for the report.
2014-01-16Fixed #21768 -- Corrected TemplateView context section.Tim Graham
Thanks nedbatchelder for the report and claudep for the patch.
2014-01-15Fix typo in storage docsKevin Wood
2014-01-12Fixed #21477 -- Renamed db to using in pre/post_migrate signals.Aymeric Augustin
2014-01-11Fixed #21547 -- Updated GeoDjango tutorial with PostGIS 2 outputClaude Paroz
Thanks awilliams at cironline.org for the report.
2014-01-11Fixed #8898 -- Obsoleted SplitDateTimeWidget usage with DateTimeFieldClaude Paroz
Thanks Tim Graham for the review.
2014-01-10Deprecated importing a model before loading its application.Aymeric Augustin
Refs #21719, #21680.
2014-01-06Fixed #21718 -- Renamed has_app to is_installed.Aymeric Augustin
2014-01-02Fixed #21319 -- Added documentation for the Form.fields attribute.Vajrasky Kok
Thanks pydanny for the report. Also, added documentation about base_fields attribute and its difference with fields attribute.
2014-01-02Changed convention for modules storing AppConfigs.Aymeric Augustin
The app/apps dichotomy was more confusing than valuable.
2014-01-02Fixed minor typos.Nathan Smith
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.
2014-01-01Fixed #21018 -- Reversed precedence order for management commands.Aymeric Augustin
2014-01-01Documented unicity rules in INSTALLED_APPS.Aymeric Augustin
Refs #12288, #21679.
2013-12-31Fixed #21581 -- Fixed a number of issues with collectstatic.Loic Bistuer
When STATIC_ROOT wasn't set, collectstatic --clear would delete every files within the current directory and its descendants. This patch makes the following changes: Prevent collectstatic from running if STATIC_ROOT isn't set. Fixed an issue that prevented collectstatic from displaying the destination directory. Changed the warning header to notify when the command is run in dry-run mode.
2013-12-31Renamed AppConfig.setup to ready.Aymeric Augustin
Thanks Jannis and Marc for the feedback. Fixed #21717.
2013-12-31Made it possible to change an application's label in its configuration.Aymeric Augustin
Fixed #21683.