Commit Graph

857 Commits

Author SHA1 Message Date
Russell Keith-Magee fbbbf8b9a1 Fixes #2737 -- Added code to allow None as a query value for __exact queries, raising an error otherwise. __exact=None is interpreted as the SQL 'value = NULL'. This fixes some minor problems with queries on unsaved objects with related object sets, and stops queries with a value of None being outright ignored (even if they reference an unknown attribute).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3902 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-14 02:48:05 +00:00
Russell Keith-Magee 73a6eb8ed0 Fixes #2384,#2566 -- Clarify the role that TEMPLATE_STRING_IF_INVALID plays in the template system, and the problems that can occur if it is used on a production site.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-10-13 14:26:08 +00:00
Russell Keith-Magee 6afa40ea00 Fixed typo in r3885.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3886 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-30 01:22:30 +00:00
Russell Keith-Magee fa4bb1b093 Clarified documentation to indicate that authenticating a user doesn't imply that they are active. Reinforced the fact that has_perm only returns true if user is active, and fixed a minor bug to that effect.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-30 01:21:03 +00:00
Russell Keith-Magee 14fb13da7e Disabled access to the admin site for inactive accounts, and clarified documentation regarding User.is_active. Thanks to Enrico <rico.bl@gmail.com> for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3884 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-29 13:37:58 +00:00
Malcolm Tredinnick fa8a1d252a Fixed #2845 -- Corrected a few spelling errors in the docs and changed a
couple of correctly spelt words to their North American counterparts for
consistency. Thanks, treborhudson@gmail.com


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-29 02:30:42 +00:00
Adrian Holovaty 7d5f6fe0f4 Fixed ReST error in docs/tutorial04.txt. Thanks, Dave Abrahams
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3882 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-28 20:39:37 +00:00
Malcolm Tredinnick 555ac9ca06 Fixed a small typo.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3881 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-28 11:38:19 +00:00
Malcolm Tredinnick db6688a454 Added a note about not using ifequal and ifnotequal to compare against True,
False, None, etc.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3880 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-28 11:20:48 +00:00
Adrian Holovaty f638234932 Removed ENABLE_PSYCO setting. If you still need to use this, write custom middleware that activates psyco for you.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-28 02:31:05 +00:00
Adrian Holovaty ad14446780 Added 'Do I lose anything by using Python 2.3 versus newer Python versions, such as Python 2.5?' to the FAQ
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26 21:57:46 +00:00
Adrian Holovaty 5e21888822 Fixed #2744 -- Added 'Writing your own context processors' to docs/templates_python.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3865 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-26 15:38:44 +00:00
Adrian Holovaty 83613ad6de Added the word 'static' to docs/apache_auth.txt for benefit of search engines. Thanks, Paul
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25 19:56:00 +00:00
Adrian Holovaty 7cfe56524b Proofread new django-admin 'adminmedia' option from [3811] and [3812]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3841 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25 17:50:36 +00:00
Adrian Holovaty f32318be98 Proofread changes to docs/serialization.txt from [3795]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3840 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25 17:44:07 +00:00
Adrian Holovaty 8920f65acd Formatting change to docs/forms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3839 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25 17:43:13 +00:00
Adrian Holovaty a0b78df2bb Proofread changes to docs/forms.txt from [3792]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3838 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25 17:42:19 +00:00
Adrian Holovaty 321a59a36a Small improvements to profanities-to-settings move from [3784]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3837 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25 17:38:35 +00:00
Adrian Holovaty 61a1a1864d Negligible spacing fix to docs/model-api.txt from [3781]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3836 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25 17:34:54 +00:00
Adrian Holovaty 227626dcd0 Fixed typos and improved documentation for permission_required decorator addition from [3779]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25 17:33:17 +00:00
Adrian Holovaty 40aa0ca875 Proofread changes to docs/contributing.txt from [3771]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25 17:22:59 +00:00
Russell Keith-Magee 0c41869e6c Made ``pk`` a generic expansion for the primary key, rather than just an expansion for __id__exact.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-25 13:49:01 +00:00
Malcolm Tredinnick 14993ece48 Documented the change in r3811. Refs #2600.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3812 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-24 08:22:52 +00:00
Malcolm Tredinnick d8b84cac91 Fixed #2515 -- Allow passing of options to JSON serializer. Thanks, nesh.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3795 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 13:26:07 +00:00
Malcolm Tredinnick f88d58285b Fixed #2546 -- Formatting fix in authentication docs. Thanks, SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3793 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 12:53:51 +00:00
Malcolm Tredinnick 4ca66711b5 Documented the always_test attribute for validator functions.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3792 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 12:46:35 +00:00
Malcolm Tredinnick b46a093c45 Fixed #2678 -- Moved the list of profanities for the hasNoProfanities validator
into global_settings. Patch from Matt Croydon.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3784 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 02:48:19 +00:00
Malcolm Tredinnick 3cf67a9920 Fixed #2649 -- Clarified behaviour of editable attribute on models. Thanks,
heckj@mac.com.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3781 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 01:54:10 +00:00
Malcolm Tredinnick 6be701eba1 Fixed #2629 -- Added a permission_required decorator to
django.contrib.auth.decorator. Thanks, dummy@habmalnefrage.de.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3779 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-22 01:44:28 +00:00
Malcolm Tredinnick e947fb2111 Fixed #2769 -- Applied some ReST formatting fixes. Thanks, ramiro.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-21 13:30:01 +00:00
Malcolm Tredinnick d85ee1c01e Fixed #2556 -- Documented that simple_tag functions can take any number of
arguments, not just one.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3772 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-21 11:41:18 +00:00
Malcolm Tredinnick d411a9a777 Updated the settings variables required to run the internal test suite. Also
fixed up the paths to existing tests and added a link to the documentation for
writing new tests for Django itself.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3771 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-21 11:19:34 +00:00
Russell Keith-Magee a5f4a0255d Clarified development stream status of some of the django-admin command line arguments
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-15 09:30:35 +00:00
Adrian Holovaty 927ec3fe7b Fixed #2732 -- Fixed error in FastCGI docs and added keyword-arg support in a FastCGI function. Thanks for the patch, James Crasta
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3759 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-14 15:37:11 +00:00
Russell Keith-Magee 45399b4b13 Updated documentation for ChangeManipulators to reflect use of flatten_data() rather than __dict__ to populate form data.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-14 13:31:50 +00:00
Adrian Holovaty 9b5807a3fe Fixed #2687 -- Fixed bug in docs/authentication.txt. Thanks, Collin Grady
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-11 18:32:45 +00:00
Russell Keith-Magee 5b34781f28 Clarified some minor issues in test system documentation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-08 13:10:57 +00:00
Adrian Holovaty 7bd946258e Fixed #2646 -- Removed unneeded comma in docs/syndication_feeds.txt. Thanks, lec9@leicester.ac.uk
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-05 00:20:53 +00:00
Adrian Holovaty 8f79523b62 Corrected spelling of 'behavior' in docs/templates_python.txt from [3714]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-04 23:40:28 +00:00
Russell Keith-Magee f0362aa300 Refs #2333 - Made minor formatting modifications to test framework documentation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-04 14:22:30 +00:00
Russell Keith-Magee cfe77946d7 Fixes #2637 -- Clarified handling of TEMPLATE_STRING_IF_INVALID, especially with regards to filtering of invalid values. Modified unit tests to test both empty and non-empty values for TEMPLATE_STRING_IF_INVALID. Thanks to SmileyChris for identifying and helping to resolve this bug.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-04 14:02:11 +00:00
Russell Keith-Magee 3a919dbe2e Refs #2333 - Made minor tweaks to the formatting of testing documentation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-04 13:05:51 +00:00
Russell Keith-Magee 8192a808bd Refs #2333 - Added documentation for the test Client, and removed a stray import.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3711 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-03 02:44:15 +00:00
Russell Keith-Magee d78e2ae355 Refs #2333 - Added a TEST_DATABASE_NAME setting that can be used to override the 'test_' + DATABASE_NAME naming policy. This setting is then used in runtests.py to restore the use of 'django_test_db' as the Django model/regression test database. Thanks to Michael Radziej for the feedback.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-09-01 13:33:26 +00:00
Adrian Holovaty 60ebb616a9 Renamed django.contrib.sitemap to django.contrib.sitemaps, to be more consistent with our plural form for these sorts of things.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-31 23:44:26 +00:00
Adrian Holovaty a30653ac54 Changed FlatpageSitemap to FlatPageSitemap, to be consistent with FlatPage model
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3698 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-31 23:31:25 +00:00
Adrian Holovaty 0a11c82b04 Added 'sitemaps' to docs/add_ons.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-31 23:19:53 +00:00
Adrian Holovaty fe9a21b243 Added 'New in Django development version' to docs/sitemaps.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-31 23:17:37 +00:00
Adrian Holovaty cea1fcc0d1 Fixed ReST error in docs/faq.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3695 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-31 23:16:25 +00:00
Adrian Holovaty 44dabecf6e Fixed #2628 -- Added django.contrib.sitemap. Thanks for the patch, Dan Watson
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3694 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-08-31 23:13:59 +00:00