Commit Graph

3057 Commits

Author SHA1 Message Date
Adrian Holovaty a209115969 Fixed a bug with the new QuerySet update() method where it wasn't committing the transaction (on Postgres, at least)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-28 00:58:21 +00:00
Adrian Holovaty d649d0f5f8 Fixed #7097 -- dates() queries now work as expected with select_related() -- that is, select_related() has no effect on the query. Thanks for reporting, Marco
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-28 00:20:40 +00:00
Malcolm Tredinnick d0c49e7b77 When retrieving a field by name, handle a missed case when the cache cannot be
initialised yet.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-27 11:44:11 +00:00
Malcolm Tredinnick 9c52d56f6f Merged the queryset-refactor branch into trunk.
This is a big internal change, but mostly backwards compatible with existing
code. Also adds a couple of new features.

Fixed #245, #1050, #1656, #1801, #2076, #2091, #2150, #2253, #2306, #2400, #2430, #2482, #2496, #2676, #2737, #2874, #2902, #2939, #3037, #3141, #3288, #3440, #3592, #3739, #4088, #4260, #4289, #4306, #4358, #4464, #4510, #4858, #5012, #5020, #5261, #5295, #5321, #5324, #5325, #5555, #5707, #5796, #5817, #5987, #6018, #6074, #6088, #6154, #6177, #6180, #6203, #6658


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7477 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-27 02:50:16 +00:00
Malcolm Tredinnick c91a30f00f Fixed #7093 -- Fixed a typo in the Russian translation. Thanks, Anossov.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7476 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-27 01:09:11 +00:00
Malcolm Tredinnick 2945a057c3 Fixed #7030 -- Handle extraction of UTF-8 messages from Javascript files.
This leads to more duplicated code in make-messages.py, but this is just a
holdover for the immediate problem until we merge make-messages into
management/.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7473 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-26 13:25:30 +00:00
Malcolm Tredinnick 138cecd892 Fixed #7086 -- Updated the Romanian translation. Thanks, Mihai Damian.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7472 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-26 12:46:57 +00:00
Malcolm Tredinnick 15a3966037 Fixed #7031 -- Added some missing plural forms to the French translation.
Thanks, François Charlier.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-26 12:42:00 +00:00
Marc Garcia 5adf26ee54 Fixed #6917 -- Catalan translation clean up
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-25 13:16:15 +00:00
Aljosa Mohorovic 6032f6f1ed hr - croatian language - updated translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-18 10:37:00 +00:00
Malcolm Tredinnick d15e290cb1 Fixed #7012 -- Added a missing file for CSS backgrounds with right-to-left
languages. Thanks, Amit Ramon.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7424 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-15 02:07:49 +00:00
Malcolm Tredinnick 8453a1750f Fixed #6387 -- Updated markdown filter to handle markdown-1.7 as well as
earlier versions. Patch from cogg, jedie and Dmitri Fedortchenko.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7423 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-15 02:00:15 +00:00
Malcolm Tredinnick ea87c0df5c Fixed #7017 -- Minor typo fix in a comment. Thanks FranRuiz.
Also promoted the comment to a docstring and removed some extra spaces.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7422 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-15 01:13:52 +00:00
Jarek Zgoda 52945a9515 Fixed #7013: Polish translation update from Piotr Lewandowski.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7421 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-14 19:52:18 +00:00
Jarek Zgoda 83fe38d74c Fixed #7013: Polish translation updated. Thank you, Piotr Lewandowski.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-13 18:57:34 +00:00
Malcolm Tredinnick 35afdedbed Fixed #6433 -- Handle some varied PostgreSQL version strings (beta versions and
Windows version strings). Patch from jerickso.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7415 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-13 02:04:10 +00:00
Malcolm Tredinnick 6dfe245f02 Updated the inline help text for User.is_active.
Fixed #6881. Refs #7011.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7414 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-13 01:50:29 +00:00
Malcolm Tredinnick 939d9e1be6 Fixed #7001 -- Updated the Simplified Chinese translation. Thanks, Liang Feng.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7413 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-13 01:35:53 +00:00
Ian Kelly 15a39f7fe5 Fixed #5985: Changed the lookups in the Oracle backend to use LIKEC instead of LIKE.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-10 17:44:40 +00:00
Malcolm Tredinnick 7fbea577e6 Fixed #6942 -- A few small updates to the Simplified Chinese translation.
Thanks, Liang Feng.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-05 02:59:41 +00:00
Malcolm Tredinnick 435d1d33cd Fixed #6936 -- Updated Bulgarian translation. Thanks, Jordan Dimov and Vladislav Mitov.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-05 02:53:10 +00:00
Malcolm Tredinnick 42ba428166 Fixed #6910 -- Updated Brazilian Portugese translation from Guilherme M. Gondim
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-05 02:50:01 +00:00
Marc Garcia 659a14bf9a Fixed #6917 (patch 1 of 3) -- Fixing typos in catalan translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-04-04 00:43:27 +00:00
Marc Fargas a9ce132657 Spanish translation update.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-30 00:07:59 +00:00
Jarek Zgoda 51c8828d0c Translated string related to [7381] (and #6879) and couple of licalized language names.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-29 20:06:03 +00:00
Gary Wilson Jr 3a662052ec Django code styling fixes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-29 16:42:39 +00:00
Gary Wilson Jr 0c222b9533 Fixed #6879 -- Made string in `contrib.flatpages` translatable, thanks ctrochalakis.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-29 15:54:43 +00:00
Marc Fargas ff1e505a15 Closes #6895, Aplying corrections from Marc Barranco (thanks!) and a few more typos corrected.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-29 00:45:25 +00:00
Marc Fargas c88ab31995 Updating catalan translation, this commit is only a make-messages with updated headers
(due to many lines getting wrapped)


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-29 00:43:57 +00:00
Ian Kelly bd3c955bd5 Added inline Oracle tablespace SQL for unique_together constraints.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7375 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-27 22:07:40 +00:00
Malcolm Tredinnick c30a050e41 Removed the ado_mssql database backend.
It has not been maintained, contains bugs, and improved versions are available
externally(e.g. django-mssql and django-pyodbc at Google code).


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7364 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-26 08:25:48 +00:00
Adrian Holovaty 054c2e4af3 Fixed #6852 -- Converted the admin to use the new paginator, to remove DeprecationWarnings. Thanks for the patch, nickefford
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-25 05:20:55 +00:00
Adrian Holovaty 3d779efbe5 Fixed #6867 -- Added some missing DeprecationWarnings to db.models.fields.related. Thanks, dcramer
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7362 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-25 05:13:08 +00:00
Adrian Holovaty 0e552e5cd6 Edited some docs changes from the past few days
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7361 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-25 04:42:21 +00:00
Malcolm Tredinnick 89e7b673d8 Fixed #5531 -- Changes a while back meant we are handling import errors from
database backends differently now. Which meant the MySQLdb version check was
being swallowed. Changed the exception type to ensure this is percolated
correctly. Patch from Ramiro Morales.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7358 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-24 14:02:44 +00:00
Malcolm Tredinnick eb6a6c4619 Fixed #6864 -- Handle Javascript i18n when the plural form expression returns
True or False (so both booleans and integers are allowed). Thanks, Ramiro Morales.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-24 13:27:19 +00:00
Malcolm Tredinnick 99150048ac Fixed a problem in the backwards-compat abilities of the paginator. Calling count() on a list throws a TypeError not an AttributeError.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7353 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-23 10:14:32 +00:00
Malcolm Tredinnick 0fea1348d6 Fixed #6846 -- Fixed first_on_page and last_on_page in list_detail generic
view. Thanks, trevor.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7352 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-23 05:45:59 +00:00
Gary Wilson Jr f3b48a21fb Fixed some styling issues in `django/core/mail.py`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7350 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-21 21:52:34 +00:00
Gary Wilson Jr 6e2c677ef9 Noted an additional modification we have made to `make_msgid`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7349 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-21 21:39:50 +00:00
Gary Wilson Jr c364b6b361 Fixed #6835 -- Use cached FQDN when creating `smtplib.SMTP()` connection to avoid a lengthy
`socket.getfqdn()` call, thanks George Murdocca and PhiR.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7348 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-21 21:08:39 +00:00
Gary Wilson Jr 1e23ad0b65 Fixed #6841 -- Don't include bcc recepients in e-mail headers, thanks PhiR.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7347 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-21 20:35:39 +00:00
Malcolm Tredinnick 675db84f23 Fixed #5917 -- More error robustness in date parsing in SelectDateWidget, plus
keep the original date selected on redisplay, even if it was bogus (e.g. 31
Feb). Patch from SmileyChris.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7337 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-20 07:44:46 +00:00
Malcolm Tredinnick 516102dc75 FIxed #6513 -- Handle overflows better in the floatformat filter. It's not
possible to test this automatically everywhere due to differing representations
on different platforms. Manual testing confirms it works, though.

Thanks, Karen Tracey.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-20 07:36:33 +00:00
Malcolm Tredinnick c0537a961f Fixed #6616 -- Added an is_ajax() method to HttpRequest that uses the de facto
standard header for detecting an XmlHttpRequest call. Thanks, Daniel Lindsley.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7334 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-20 07:16:16 +00:00
Malcolm Tredinnick c01e6b852a Fixed #6486 -- Added local server time to the debug output page. Patch from
Bastian Kleineidam and Thomas Güttler.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7333 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-20 07:01:26 +00:00
Malcolm Tredinnick b3b8422363 Fixed #6445 -- Allow model instances to be used as a default for ForeignKeys
(via a callable). Also updates the documentation of the "default" attribute to
indicate a callable can be used. Thanks, Philipe Raoult.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-20 06:56:23 +00:00
Malcolm Tredinnick 597f9d6105 Fixed #5982 -- Changed test client's URL processing to match core's (everything
gets run through urllib.unquote()). Patch from Leo Shklovskii and Russell
Keith-Magee.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-20 06:50:54 +00:00
Malcolm Tredinnick 9e47cc2e51 Fixed #5507 -- Use a more portable way to get at the system's tmpdir (fixes a
problem with the default on Windows). Thanks, Philippe Raoult.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-20 06:43:58 +00:00
Jacob Kaplan-Moss 649cdf907d Fixed #4620: you can now easily add custom labels to ModelChoiceFields via subclassing. Thanks, PhiR.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7326 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-19 23:10:45 +00:00