8999 Commits

Author SHA1 Message Date
Jannis Leidel
395af9d5cf [1.2.X] Fixed #7077 and #7431 -- Use getpass.getuser instead of pwd.getpwuid to determine the current system user's username in the createsuperuser management command to enable the feature on Windows. getpass.getuser automatically falls back to the previous method.
Backport from trunk (r14607).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 20:30:44 +00:00
Alex Gaynor
9057450af0 [1.2.X] Added a hidden toctree pointing at the index file in the docs to silence a sphinx warning. Backport of [14605].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 20:26:58 +00:00
Alex Gaynor
030fdcc7c8 [1.2.X] Fixed #14713 -- documented that resolve can raise Http404. Thanks to Adam for the patch. Backport of [14603].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14604 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 20:04:49 +00:00
Alex Gaynor
1aaf270d73 [1.2.X] Fixed #14423 -- corrected incorrect SQL being generated when a nullable, inherited field was used in an exclude. Thanks to PhiR_42 for the patch. Backport of [14600].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14601 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 16:47:46 +00:00
Alex Gaynor
6469eec71d [1.2.X] Corrected some syntax issues in the docs. Backport of [14598].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14599 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 16:11:17 +00:00
Jannis Leidel
f58d17db74 [1.2.X] Fixed a bunch of code examples in the form media documentation.
Backport from trunk (r14594).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14596 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 15:45:15 +00:00
Russell Keith-Magee
17d0c7ad4c [1.2.X] Migrated model_formsets doctests. Thanks to Gregor Müllegger for the patch.
Backport of r14590 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 13:38:53 +00:00
Ramiro Morales
8acad926df [1.2.X] Fixed #11369 -- Corrected verbose_name_plural model Meta option to be consistent with verbose_name when using abstract model inheritance. Thanks Beetle_B for the report.
Backport of [14588] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14589 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 12:24:47 +00:00
Alex Gaynor
03b111c6cc [1.2.X] Fixed #12687 -- fixed an issue with aggregates and counts in conjunction with annotations where the QuerySet was provably empty. Backport of [14586].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14587 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 02:58:59 +00:00
Chris Beaven
929b8ff3da [1.2.X] Remove an obsolete admonition in tutorial one (referencing 0.96 functionality)
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14584 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-17 02:24:58 +00:00
Ramiro Morales
746ce7d967 [1.2.X] Fixed #14691 -- Made ForeignKey.validate() use the right database. Thanks Marco Paolini for the report.
Backport of [14580] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14581 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16 22:17:51 +00:00
Chris Beaven
6ff1f38646 [1.2.X] Better cross-referencing of the USE_THOUSAND_SEPARATOR setting in documentation. Thanks to Klaas van Schelven for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14579 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16 21:34:53 +00:00
Russell Keith-Magee
10fafed666 [1.2.X] Migrated model_inheritance_regress doctests. Thanks to Gregor Müllegger for the patch.
Backport of r14576 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14577 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16 15:15:47 +00:00
Russell Keith-Magee
587c66f7a0 [1.2.X] Migrated forms (minus localflavor) doctests. A huge thanks to Daniel Lindsley for the patch.
Backport of r14570 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14575 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16 14:48:52 +00:00
Luke Plant
3cbcce429c [1.2.X] Corrected 'email' to 'e-mail' in error reporting docs.
Backport of [14571] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16 13:32:07 +00:00
Alex Gaynor
478a4e22ad [1.2.X] Added a test for using an __in lookup with a ValueListQueryset from a none() call. Refs #14622. Backport of [14568].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14569 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16 02:36:00 +00:00
Alex Gaynor
bfab752286 [1.2.X] Fixed #14696, corrected some messed up syntax in the docs. Backport of [14566].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14567 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-16 02:21:38 +00:00
Ramiro Morales
2f91f76417 [1.2.X] Fixed #3055 -- Validate that models target of a GenericRelation have a GenericForeignKey field.
Thanks jason for diagnosing the problem and Marcos Moyano for the patch.

Backport of [14563] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14565 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-14 23:36:40 +00:00
Ramiro Morales
dc3b524f6c [1.2.X] Fixed #10650 -- Clarified description of MEDIA_ROOT in setting files. Thanks jjconti, tvon, vak, Muhammad Alkarouri and thiggins for their work.
Backport of [14560] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14561 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-14 15:50:01 +00:00
Ramiro Morales
a052bcb011 Fixed #14536 -- Corrected DB connection OPTIONS examples in documentation. Thanks denilsonsa for reporting the error.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14558 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-14 14:09:52 +00:00
Ian Kelly
17bd39ae5a [1.2.X] Backport of r14547 from trunk.
Fixed a test case that was failing in Oracle due to conflation of null and empty strings.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12 19:47:41 +00:00
Alex Gaynor
8c7df2198a [1.2.X]Converted m2m_signals from doctests to unittests. Thanks to Gregor Müllegger for the patch. We have always been at war with doctests. Backport of [14548].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14549 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12 19:40:04 +00:00
Ian Kelly
80946dc0fa [1.2.X] Backport of r14545 from trunk.
Fixed a multiple_database test case that was failing in Oracle due to forced table name capitalization.  The test case now matches the style used by the raw_query tests.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14546 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12 18:51:54 +00:00
Gabriel Hurley
e074d2b9e9 [1.2.X] Fixed #14669 -- corrected an ungrammatical sentence in the internationalization docs. Thanks to steveire for the report.
Backport of [14539] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14540 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12 02:49:21 +00:00
Ian Kelly
0046f37393 [1.2.X] Backport of r14537 from trunk.
Fixed #11101: Rewrote the sequence reset SQL for Oracle to prevent it from performing an implicit commit that caused all fixtures to be automatically committed, causing a large number of test failures.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14538 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-12 01:54:07 +00:00
Alex Gaynor
4e4418d34d [1.2.X] Removed the executable bit from a test file, it wasn't. Thanks to Florian for the report. Backport of [14530].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14531 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-11 17:53:59 +00:00
Alex Gaynor
659ac65cc3 [1.2.X] Remove the executable flag from uploadhandler.py, it wasn't. Thanks to Florian for the report. Backport of [14528].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-11 17:51:45 +00:00
Luke Plant
d7b8d07cf2 [1.2.X] Fixed #14508 - test suite silences warnings.
Utility functions get_warnings_state and save_warnings_state have been added
to django.test.utils, and methods to django.test.TestCase for convenience.

The implementation is based on the catch_warnings context manager from
Python 2.6.

Backport of [14526] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-11 15:30:13 +00:00
Ramiro Morales
79ab8cad03 [1.2.X] Fixed error introduced in r14512.
Backport of [14514] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-11 05:18:27 +00:00
Ramiro Morales
2778f14660 [1.2.X] Fixed small multi-db compatibility issue in the Oracle backend.
Also, converted a couple of constructs to a more Python idiomatic form.

Backport of [14512] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14513 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-11 05:12:05 +00:00
Ramiro Morales
0f065d346d [1.2.X] Implemented changes made in r14320 in the Oracle backend. Thanks Russell for reviewing the proposed fix.
Backport of [14510] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14511 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-11 04:37:37 +00:00
Justin Bronn
7335388be2 [1.2.X] Fixed #14653 -- Removed vestigal getstatusoutput from GeoDjango utils.
Backport of r14508 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14509 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-09 17:42:38 +00:00
Carl Meyer
a8114d64d5 Fixed #14599 -- Added documentation for QuerySet.delete() in the QuerySet API reference. Thanks to abeld for the report. Backport of r14505 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14506 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-09 16:35:39 +00:00
Alex Gaynor
66c72b1f80 [1.2.X] Fixed #14650 -- noted that underscores are also valid in slug fields. Thanks to stringify for the report and patch. Backport of [14503].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14504 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-09 05:19:17 +00:00
Ramiro Morales
caf51bfcd4 [1.2.X] Fixed typo in raw SQL docs example.
Backport of [14501] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14502 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-09 05:07:42 +00:00
Jacob Kaplan-Moss
33c0a14180 [1.2.X] Small rewording of tutorial01.txt changes from [14066]
Backport of [14499] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14500 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-08 23:50:17 +00:00
Jacob Kaplan-Moss
6e5eb99c55 [1.2.X] Fixed #14641 - a handful of grammer/typo fixes.
Thanks, programmerq.

Backport of [14497] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14498 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-08 20:43:30 +00:00
Russell Keith-Magee
cbe27e3cc4 [1.2.X] Corrected some backporting errors in the template tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14496 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-08 04:42:13 +00:00
Gabriel Hurley
488c9b3f11 [1.2.X] Backporting myself to the 1.2.X docs/internals/committers.txt... and fixing the typo in Jeremy's bio (again). :)
Backport of [14056] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-07 23:10:35 +00:00
Gabriel Hurley
6e201bcae2 [1.2.X] Fixed #11877 -- Documented that HttpRequest.get_host() fails behind multiple reverse proxies, and added an example middleware solution. Thanks to Tom Evans for the report, and arnav for the patch.
Backport of [14493] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14494 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-07 23:03:47 +00:00
Ramiro Morales
0164ee0082 [1.2.X] Completed and enhanced links to database-specific notes from the install docs.
Backport of [14491] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14492 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-07 21:46:03 +00:00
Ramiro Morales
1431bcc70e [1.2.X] Fixed some Oracle backend test DB creation code bugs.
Made saving of modified settings compatible with multi-db, removed dead and superfluous code.

Backport of [14489] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14490 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-07 21:02:49 +00:00
Gabriel Hurley
7509bdf86b [1.2.X] Fixed #12975 -- Moved the docs for contrib.admindocs out of the template docs and into their own reference section, and significantly improved the documentation of what admindocs can do. Thanks to jabapyth for the report, and whiteinge for the patch.
Backport of [14484] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14485 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-07 09:23:12 +00:00
Gabriel Hurley
969ac914ff [1.2.X] Fixed #10904 -- Corrected inappropriate usage of the term "absolute URL" throughout the docs. Replaced with the (RFC 2396-compliant) terms "absolute path reference" or "absolute path" as appropriate for the context. Thanks to sharan666 for the report, and Malcolm, Chris, and dwillis for their work in supplying a solution and patch.
Backport of [14482] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-07 01:44:32 +00:00
Gabriel Hurley
2946a657cd [1.2.X] Fixed #8325 -- Reorganization and expansion of the login_required decorator docs to make it clearer how the redirect_field_name parameter works and improve the overall flow of the text. Thanks to Robert Reeves for the report.
Backport of [14480] from trunk (sans 1.3-specific changes).

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14481 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-07 01:00:05 +00:00
Justin Bronn
d8e0052d45 [1.2.X] Fix for running GEOS/GDAL tests on Python 2.6 and below.
Backport of r14474 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14475 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-06 16:32:08 +00:00
Gabriel Hurley
24ce5033c8 [1.2.X] Fixed #14627 -- Made Tutorial 3 more explicit regarding the transformations the URLconf undergoes in the final two sections, and gave an example of concatenating two patterns() in the process. Thanks to filmer for the report.
Backport of [14472] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14473 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-06 10:09:35 +00:00
Gabriel Hurley
1423593e8f [1.2.X] Fixed #14624 -- Updated a few outdated references to CacheMiddleware in the transactions topic guide. Thanks to quinode for the report.
Backport of [14470] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-06 09:21:00 +00:00
Ramiro Morales
c8c781a9d5 [1.2.X] Fixed #14630 -- Increased maximum size of the Oracle tablespace datafile used for tests from 100MB to 200MB.
This allows the execution of the full Django test suite without running out of allocated space.

Backport of [14468] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-06 04:32:23 +00:00
Alex Gaynor
80d6495f6e [1.2.X] Fixed #14629 -- corrected a misspelling and poor wording in the docs. Thanks to OldTroll for the patch. Backport of [14466].
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14467 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2010-11-06 03:26:46 +00:00