Commit Graph

1008 Commits

Author SHA1 Message Date
Jacob Kaplan-Moss 4477f50f0b Added a "depth" argument to select_related() to control how many "levels" of relations select_related() is willing to follow (refs #3275).
Also added unit tests for select_related().

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4645 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-28 15:24:05 +00:00
Jacob Kaplan-Moss 9c2c03a974 Fixed #3598: Added a note about the precedence of URL matches versus extra kwargs in URL patterns. Thanks, Ubernostrum.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4638 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-27 20:11:26 +00:00
Jacob Kaplan-Moss b97636944d Fixed #2565: added a note about the laziness of querysets in tutorial 4. Thanks, Ubernostrum.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-27 04:27:47 +00:00
Jacob Kaplan-Moss a419079347 Fixed #2264: the docs now mention that delete() cascades. Thanks, Ubernostrum
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-27 03:48:49 +00:00
Jacob Kaplan-Moss ee9deca371 Fixed #3039: corrected example code in authentication.txt. Thanks, Ubernostrum.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4633 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-27 00:16:40 +00:00
Jacob Kaplan-Moss a8ed2b4d58 Fixed #3325: Added docs/distributions.txt, a guide to packaged versions of Django in Debian/Fedora/etc. Thanks to Marc Fargas and Ubernostrum for the patches.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4629 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 23:23:01 +00:00
Jacob Kaplan-Moss b581d73222 Fixed #834: Added documentation of the built-in authentication views. Thanks, Ubernostrum.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4627 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 22:19:03 +00:00
Adrian Holovaty b21fd1e451 Small cleanup of docs/model-api.txt change from [4625]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4626 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 21:52:22 +00:00
Jacob Kaplan-Moss 96604fdf8f Fixed #3455: added documentation of Model.get_FIELD_display(). Thanks, Ubernostrum.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 21:40:15 +00:00
Jacob Kaplan-Moss 9f1bf4659b Fixed #3364: Updated install.txt to recommend psycopg2. Thanks, Marc Fargas.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4624 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 21:39:09 +00:00
Jacob Kaplan-Moss 3e9c41d03b Fixed #3319: Added docs to django-admin.txt about reset and runfcgi. Thanks, Ubernostrum.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4623 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 21:36:14 +00:00
Adrian Holovaty 7b2c6984cd Improved error e-mail docs in docs/settings.txt from [4619]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4622 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 21:33:04 +00:00
Jacob Kaplan-Moss 36a514f818 Fixed #3279: Added a note about using MySQLdb 1.2.1 or later. Thanks, Marc Fargas.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4621 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 21:25:21 +00:00
Jacob Kaplan-Moss 702273d77b Fixed #3195: added a note in settings.txt about DEBUG and HIDDEN_SETTINGS. Thanks, cmgreen@uab.edu
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 21:22:21 +00:00
Jacob Kaplan-Moss e7fb31624a Fixed #3135: added some more explanation about how the various error email settings work together. Thanks, Simon G.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 21:18:31 +00:00
Jacob Kaplan-Moss b9522d0a52 Fixed #2592: Added a warning to tutorial 1 about not naming your project "site" or "django" or anything else similarly boneheaded.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4618 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 20:51:21 +00:00
Russell Keith-Magee f313e07b6e Fixed #3253 -- Exposed the number of failed tests as a return code in manage.py and runtests.py.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 12:52:01 +00:00
Jacob Kaplan-Moss abf79841fe Fixed #3397: You can now order by non-DB fields in the admin by telling Django which field to actually order by. Thanks, marcink@elksoft.pl
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4596 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 05:37:24 +00:00
Jacob Kaplan-Moss 3d164ab04f D'oh, fixed broken ReST in last commit.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4595 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 05:16:52 +00:00
Jacob Kaplan-Moss d7d73c9fac Fixed #3354: added a message to tutorial 1 about where to go for help. Thanks to Marc Fargas for the original patch, but I ended up going with a somewhat softer wording just to be double-plus-ultra-sure not to turn anyone off.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4594 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 05:15:52 +00:00
Jacob Kaplan-Moss ffb62e0c02 Fixed #3249: small doc fix to pagination documentation. Thanks, Nikolaus Schlemm.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4593 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 05:07:54 +00:00
Jacob Kaplan-Moss b7fa37f9b2 Fixed #3170: added first_on_page and last_on_page arguments to paginated generic views. Thanks, Grimboy.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-26 04:53:44 +00:00
Adrian Holovaty 25895623ff Reverted [4578] because there's no such thing as a PasswordField database field type
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25 19:51:33 +00:00
Jacob Kaplan-Moss 81bb3d9e74 Fixed #2071: added a smidge of docs on PasswordField. Thanks for the patch, asmodai.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25 17:18:17 +00:00
Jacob Kaplan-Moss cef2239086 Fixed #2104: allow somewhat nicer error messages in RequiredIfOtherFieldEquals validator. Thanks, Steven Armstrong
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4577 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25 17:16:38 +00:00
Jacob Kaplan-Moss 3468fd01a9 Fixed #3488: send_mail no longer uses settings in function default arguments. Thanks to Per Jonsson for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4574 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25 16:29:09 +00:00
Jacob Kaplan-Moss 5c17b42772 Fixed #3504: fixed a missing "self" in the authentication docs. Thanks, Robert Myers.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-25 16:11:46 +00:00
Jacob Kaplan-Moss a01f852d2e Fixed documentation from [4558] to be correct.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4559 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23 20:50:53 +00:00
Jacob Kaplan-Moss 36512d5d73 Fixed #343: filters that take strings now handle non-strings correctly. Thanks to Boffbowsh for the original patch, and to SmileyChris for the updated patch and tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-23 18:02:51 +00:00
Adrian Holovaty 2fe6476180 Copy edited new docs in docs/model-api.txt from [4535]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4539 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-18 04:44:17 +00:00
Adrian Holovaty fa159c8de9 Copy edited new docs in docs/request_response.txt from [4534]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-18 04:42:15 +00:00
Malcolm Tredinnick ed3d787eda Fixed #2568 -- Added documentation for the permalink() decorator. Based on a
patch from Joeboy.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4535 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 05:51:45 +00:00
Malcolm Tredinnick 369d9ffa3d Fixed #2906 -- Added documentation about HTTP error code returns and the
default 404 and 500 code error handlers. Based on a patch from Marc Fargas.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4534 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 04:59:49 +00:00
Russell Keith-Magee d6d51c9546 Fixed #3160 -- Added the ability to control the content type in a test client POST request. This is to allow easier testing of json-rpc/xml-rpc/soap etc interfaces. Thanks to Mikeal Rogers for the suggestion, and Ben <afternoon@uk2.net> for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-17 00:23:09 +00:00
Adrian Holovaty c96d155589 Fixed typo in docs/newforms.txt. Thanks, Jeff Hilyard
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 20:55:37 +00:00
Adrian Holovaty 27b28616b4 Created django.contrib.localflavor, for country- and culture-specific functionality. Moved django/newforms/extras/usa.py into there
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4524 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-15 05:53:44 +00:00
Adrian Holovaty 6ab41bef13 Made a small improvement to the first overview paragraph in docs/newforms.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4508 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-14 23:49:58 +00:00
Adrian Holovaty 26058b98a6 Fixed ReST error in docs/testing.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4507 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-14 23:45:45 +00:00
Adrian Holovaty 0518205308 Implemented subclassing Forms in newforms
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-14 23:44:46 +00:00
Adrian Holovaty c61d7e195f Renamed date_to_format function in docs/templates_python.txt example so as to make it not sound like a conversion function. Thanks, linoj
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 15:44:04 +00:00
Adrian Holovaty 5bed563edf Cleaned up docs/templates.txt 'url' tag documentation from [4494]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4499 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 06:13:06 +00:00
Malcolm Tredinnick ffa0d27462 Fixed #3005 -- Applied trivial docs patch for "oldforms" use of do_html2python.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 05:02:47 +00:00
Malcolm Tredinnick 0fabbf8ce8 Fixed #2606 -- Added tag for working out the URL of a particular view function.
All work done by Ivan Sagalaev.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-13 04:24:58 +00:00
Adrian Holovaty b9677848f5 Small formatting tweaks to named-end-blocks change from [4489]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4492 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-12 17:13:08 +00:00
Adrian Holovaty 38f9d8dac6 Fixed dangling modifier in docs/settings.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4491 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-12 17:10:09 +00:00
Malcolm Tredinnick a0c354ee4e Fixed #3351 -- Added optional naming of the block in "endblock" tags to ensure
correct nesting. Thanks for the patch, SmileyChris.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4489 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-12 00:22:22 +00:00
Malcolm Tredinnick 80e58b3211 Fixed #2315 -- added work around for Windows timezone setting (i.e. we can't do
it). This will work until somebody wants to write some full Win32 timezone changing code for us. Thanks to Marc Fargas and SmileyChris for the combined patch.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-12 00:10:09 +00:00
Adrian Holovaty b767b5831d Made negligible change to docs/django-admin.txt -- 'MS Windows' to 'Windows'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4484 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-11 04:39:23 +00:00
Adrian Holovaty 8369240138 Made negligible change to docs/contributing.txt -- 'MS Windows' to 'Windows'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-11 04:38:44 +00:00
Russell Keith-Magee f9cdde0cb4 Fixed #3162 -- Added coded to catch and rethrow exceptions that are thrown by the views visited by the test client. Thanks, Ben <afternoon@uk2.net>.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-02-11 00:23:31 +00:00