Commit Graph

3170 Commits

Author SHA1 Message Date
Adrian Holovaty 2b926d4222 Fixed #7319 -- Removed unused DatabaseFeatures attribute 'needs_upper_for_iops'. Thanks, leosoto
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-26 04:05:48 +00:00
Adrian Holovaty 8089eec6cf Fixed #7527 -- Removed an unused value from __all__ in django.core.servers.basehttp. It had languished there erroneously since the original checkin in Django changeset [174]. Thanks, trevor
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-26 04:03:44 +00:00
Malcolm Tredinnick 915001ad0b Fixed #7109 -- Quote certain values before passing them for substitution in
Field.db_type().

This fixes a problem with using reserved words for field names in Oracle. Only
affects Oracle at the moment, but the same changes could easily be used by
other backends if they are required (requires changing creation.py, only).

This commit also reverts [7501] so that if the fix doesn't work, it will show
up in the tests (and if it does work, the tests will prevent us from breaking
it again).


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-26 03:11:32 +00:00
Malcolm Tredinnick 002dbd16b4 Removed the bulk of the sanity checking when merging QuerySets.
It was causing too many inconvenient and unintended problems when merging
legitimate subclasses (e.g. with geo-django classes). There's still a hook
there that we use when merging ValueQuerySets, but if you try to merge two
disparate QuerySets and it breaks all that happens is you get to keep both
pieces. We're no longer penalising the useful usages just for the people who
aren't concentrating.

Fixed #7113.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7742 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-26 02:20:45 +00:00
Malcolm Tredinnick 588eeb356c Fixed a problem when constructing complex select_related() calls.
Avoids joining with the wrong tables when connecting select_related() tables to
the main query. This also leads to slightly more efficient (meaning less tables
are joined) SQL queries in some other cases, too. Some unnecessary tables are
now trimmed that were not previously.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7741 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-26 01:02:11 +00:00
Malcolm Tredinnick 1834428648 Fixed a problem with values() and values_list() queries and nullable joins.
Previously, if we were querying across a nullable join and then a non-nullable
one, the second join would not be a LEFT OUTER join, which would exclude
certain valid results from the result set.

This is the same problem as [7597] but for values() field specifications, so
this covers the second case where Django adds extra stuff to the select-clause.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7740 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-26 01:01:21 +00:00
Russell Keith-Magee b8f7b39ccc Fixed #7155 -- Corrected DateQuerySet to handle nullable fields. Thanks to fcaprioli@alice.it for the original report and patch, and to Jeremy Dunck for the test case.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-25 13:38:06 +00:00
Russell Keith-Magee 87a704cf50 Fixed #7531 -- Modified the sites test so that user-provided initial data doesn't cause breakage when executed from within user applications. Thanks for the report, madkinder@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-25 12:09:18 +00:00
Jarek Zgoda 922f62c29e Missing compiled messages file from my previous commit
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7732 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-24 05:47:51 +00:00
Jarek Zgoda af46df583f Updated Polish translations (couple of locality names and some wording cleanups)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-24 05:46:44 +00:00
Jannis Leidel 89624bf67f Fixed #7477 -- Updated German locale.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7729 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-23 19:48:16 +00:00
Russell Keith-Magee c8d39f15cb Fixed #7521 -- Reverted [7716]. Fixed URLs in test case broke any application that deployed contrib.auth.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7726 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-23 12:17:57 +00:00
Gary Wilson Jr 5db4d60215 Several Django styling fixes in the `contrib.sessions` app.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7725 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-23 05:08:07 +00:00
Russell Keith-Magee 1fc0077a95 Fixed #7517 -- Added code to remove Sites from the site cache when they are deleted. Thanks to Marc Fargas for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7724 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-22 06:50:25 +00:00
Russell Keith-Magee b83fcacfcc Fixed #7514 -- Added code to clear the site cache on sync. This shouldn't have any effect on regular usage, but it does correct an error in the test suite. Thanks to Marc Fargas for the fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7723 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-22 06:34:17 +00:00
Luke Plant b1851cca3e Fixed bug with Model.delete() which did not always delete objects in the right order.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7722 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-21 20:57:05 +00:00
Luke Plant 7c621535a2 Added tests for corner case with deleting where objects are deleted in the wrong order.
These tests currently fail, by design, fix will be committed shortly.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-21 20:55:17 +00:00
Luke Plant 17bc2820bb Removed some unnecessary work in Model._collect_sub_objects()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7720 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-21 16:37:44 +00:00
Luke Plant fad8e8f7c2 Added basic tests for auth.views.password_reset
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-20 17:43:12 +00:00
Marc Fargas 6123f8455c Catalan translation updates.
This includes: Lowercasing language and month names, 
and two new language names.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-20 11:04:29 +00:00
Jacob Kaplan-Moss e637f47232 Fixed #7475: fixed a possible race condition in ModelChoiceIterator. Thanks, esaj.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-19 21:15:33 +00:00
Russell Keith-Magee 5d09d8769d Fixed #6650 -- Added UTF-8 encoding to SQL output provided by management commands. Thanks to farcaller for the suggestion.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-19 14:38:56 +00:00
Russell Keith-Magee e726065d5d Fixed #6812 -- Modified the formtools test case to be run order safe with respect to the ROOT_URLCONF setting. Thanks for the patch, james
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-19 13:32:39 +00:00
Russell Keith-Magee 090aeee399 Fixed #6719 -- Added a --traceback option to syncdb to provide a stack trace when custom SQL loading fails. Also added documentation for the --traceback option. Thanks to guettli for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-19 13:24:39 +00:00
Russell Keith-Magee 5da67a084a Fixed #7355 -- Modified urlize utility to handle https:// addresses. Thanks for the report and patch, clint.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-19 12:05:39 +00:00
Marc Fargas d943c19428 Closes #7461, Month/Week names lowercased. Thanks Arien.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7700 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-19 07:53:24 +00:00
Jacob Kaplan-Moss 7ecd4867a5 Fixed #7458: added Lithuanian to LANGUAGES.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7698 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 20:53:55 +00:00
Jacob Kaplan-Moss 8cb4895c68 Added Estonian to global_settings.LANGUAGES. Refs #7141.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 20:51:22 +00:00
Marc Fargas 7e0664bfd8 Refs #7461, lowercased language names in Spanish translation. Thanks Arien.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 20:47:07 +00:00
Marc Fargas 12f8d59193 Refs #7458, New Lithuanian translation. Thanks Rapolas Kaselis.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7695 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 20:38:35 +00:00
Jacob Kaplan-Moss 1a75b5a03c Fixed #4860: added 'for' attributes to labels in newforms widgets. Thanks to Ivan Sagalaev and batiste@dosimple.ch for the patches.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7693 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 16:33:04 +00:00
Jacob Kaplan-Moss 2b62e945b0 Fixed #3393: login view no longer assumes that set_test_cookie has been called. This is mildly backwards-incompatible, but in the "now it works the way it should have all along" sense. Thanks to James and lcordier for the patches.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 16:13:14 +00:00
Russell Keith-Magee e146e508da Fixed #7554 -- Modified contrib.localflavor to make use of ugettext, rather than ugettext. Thanks to msaelices for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7689 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 13:10:05 +00:00
Russell Keith-Magee 4317ba5799 Fixed #7318 -- Cleaned up the template inheritance logic, specifically to handle the case where the parent template has no template tags/blocks. Took the opportunity to optimize the logic a little. Thanks to Matthias Kestenholz <mk@spinlock.ch> for the original report and test case.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7688 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 12:59:39 +00:00
Russell Keith-Magee dc7f21daf7 Fixed #7429 -- Modified the Session base class a little more dictionary-like by adding update(), has_key(), values(), and iterator access methods. Thanks to Jeremy Dunck for the suggestion and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 12:07:46 +00:00
Marc Fargas 0694c75e2d Missing compile-messages.py -l hr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7686 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-18 09:12:39 +00:00
Aljosa Mohorovic f0c750d018 updated croatian translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-17 21:43:53 +00:00
Russell Keith-Magee e829e9ff8f Fixed #7044 -- Corrected a minor typo in a docstring in the model loader. Thanks, msaelices.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7679 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-17 13:58:19 +00:00
Marc Fargas 8a861942cd Closes #7413, Updated Hebrew translation (Thanks Meir Kriheli)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7673 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-17 10:54:48 +00:00
Marc Fargas 2cd9aadacf Refs #7141, Estonian updates (Thanks Erik Allik)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7672 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-17 09:37:25 +00:00
Marc Fargas 813c8fdb6d Refs #7141, New Estonian translation. (Thanks Erik Allik & mrts)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7668 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16 17:59:59 +00:00
Marc Fargas 2606230616 Closes #7455, compiled .mo file for Croatian translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7667 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16 17:47:58 +00:00
Russell Keith-Magee 6564daa597 Fixed #7347 -- Corrected docstring in IT localflavor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7662 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16 12:38:58 +00:00
Marc Fargas dd8adb304a Refs #7461, Typos in 'es' locale. Thanks arien
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7661 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16 08:05:42 +00:00
Adrian Holovaty e073861332 Fixed #6831 -- Reverse URL resolver now replaces backslashes correctly. Thanks, Bastian Kleineidam
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16 04:16:21 +00:00
Adrian Holovaty 02bbd9a9b2 Fixed #7228 -- Fixed our ETag header creation to meet the HTTP spec, by quoting it. Thanks, skjohn@us.ibm.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7659 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16 04:13:04 +00:00
Adrian Holovaty 4094d03e29 Added shebang line to bin/profiling/gather_profile_stats.py. Refs #7268
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7658 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16 04:09:44 +00:00
Adrian Holovaty 260d3be69f Fixed #7354 -- Fixed a Python 2.3 compatibility issue in formtools/wizard.py. Thanks, mage
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7657 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16 04:06:50 +00:00
Adrian Holovaty ee882b6abd Fixed #6497 -- Improved fixture error reporting by displaying the entire traceback. Also, SystemExit and KeyboardInterrupt now exit the script properly. Thanks for the patch, Bastian Kleineidam
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7653 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16 04:00:08 +00:00
Adrian Holovaty a0a06d1a89 Fixed #6654 -- Slightly refactored the way 'startproject' and 'startapp' check for existing Python modules. Thanks, i_i
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7652 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16 03:56:48 +00:00