Commit Graph

2997 Commits

Author SHA1 Message Date
Malcolm Tredinnick 99b200dac7 Changed the name of the "ga" locale to "Irish" in the settings file.
We use the English names for all the langauges in there.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-19 03:40:24 +00:00
Malcolm Tredinnick 68e43660d8 Fixed #6617 -- Added new Georgian (ka) translation from David Avsajanishvili.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-19 03:38:16 +00:00
Malcolm Tredinnick 6a796690e6 It makes sense that when you subclass an existing model field, you're often
going to be using the same database column type. Made that properly
inheritable (previously it was using the class name), at the cost of a little
more verboseness.

This is very slightly backwards incompatible (for subclasses of existing fields
that were relying on the old default).

Fixed #6556.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-19 02:58:41 +00:00
Malcolm Tredinnick 343fa35a2c Fixed #2936, #6500 -- Added a __hash__() method to Models (since we implement our own __eq__ method).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-19 01:59:34 +00:00
Malcolm Tredinnick f1a24be01c Fixed #6481 -- Fixed a bunch of import problems (and some whitespace cleanups).
Found by Bastian Kleineidam with help from pyflakes. Thanks.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-19 00:08:08 +00:00
Malcolm Tredinnick e7b2ad8020 Fixed #6611 -- When copying a SortedDict, make a new copy of the keys list.
Thanks, Jeremy Dunck.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7129 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-18 23:08:51 +00:00
Adrian Holovaty 8b3f36029f Made a bunch of small doc rewordings from changes over the past couple of weeks
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-16 05:15:09 +00:00
Malcolm Tredinnick 87ca6ae4cc Fixed #6607 -- Added a new Basque (eu) translation. Thanks ibonso@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7118 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-15 11:29:27 +00:00
Malcolm Tredinnick c3b642187e Trivial comment change in ModelFormMetaclass to better reflect what we are doing.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7117 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-15 09:42:50 +00:00
Malcolm Tredinnick 16928a79e6 Tweaked [7098] to follow a more duck-typing approach.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-15 06:40:23 +00:00
Malcolm Tredinnick 1159791cd5 Modified [7112] to make things behave more in line with Python subclassing when subclassing ModelForms.
Meta can now be subclassed and changes on the child model affect the fields
list. Also removed a block of error checking, since it's harder to mess up in
unexpected ways now (e.g. you can't change the model and get the entirely wrong
fields list), so it was a level of overkill.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7115 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-14 17:38:05 +00:00
Malcolm Tredinnick 37962ecea7 Fixed #6337. Refs #3632 -- Fixed ModelForms subclassing, to the extent that it can be made to work.
This ended up being an almost complete rewrite of ModelForms.__new__, but
should be backwards compatible (although the text of one error message has
changed, which is only user visible and only if you pass in invalid code).

Documentation updated, also.

This started out as a patch from semenov (many thanks!), but by the time all
the problems were hammered out, little of the original was left. Still, it was
a good starting point.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-14 12:56:49 +00:00
Russell Keith-Magee 7d2a8f0e18 Fixed #6596 -- Corrected minor typo in comment. Thanks, cbmeeks@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7109 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-13 23:28:58 +00:00
Russell Keith-Magee 4415f45366 Further clarification of help message for ./manage.py sqlall, this time using the same term used in the documentation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-12 01:01:27 +00:00
Russell Keith-Magee 9c80d77d7d Clarified help message for ./manage.py sqlall
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-12 00:48:37 +00:00
Malcolm Tredinnick 5480a1eecf Fixed #6214 -- Added some small optimisations to model class initialisation.
Thanks, Ivan Illarionov.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7098 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-08 12:01:23 +00:00
Malcolm Tredinnick 2bb9e0a734 Fixed #6557 -- Updated Polish translation from Jarek Zgoda.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7097 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-08 10:34:43 +00:00
Malcolm Tredinnick 0a3c8f03e0 Fixed #6409 -- Unbreak compound locale name parsing (e.g. zh-cn).
This was inadvertently broken back in [6608]. Slightly backwards-incompatible:
people specifying "es_AR" in their LANGUAGES list will need to change that to
"es-ar". Thanks, simonb and Ramiro Morales for making the effort to fix this.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-06 01:04:30 +00:00
Malcolm Tredinnick fc1889ad63 Fixed some PO files that contained invalid msgstr entries (marked them as fuzzy)
Most of these will be trivial for a concerned translator to fix, but I'm just
removing the erroneous lines from being compiled so that Django doesn't crash.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-05 23:56:08 +00:00
Malcolm Tredinnick 00f96de5d6 Tweaked [7082] and [7084] a little bit to also allow comment nodes prior to the extends tag.
This would be little less fiddly if we knew nodelist were always of type
NodeList, but they could be normal lists. Or if we merged successive TextNodes,
instead of appending them. Something to think about going forwards.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-05 23:41:48 +00:00
Malcolm Tredinnick 0cdd65aa28 Fixed a simple TODO item in one error path of the "extends" tag.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7085 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-04 04:57:56 +00:00
Malcolm Tredinnick b9e088ae14 Fixed #5124 -- Added a reasonable error when "extends" is not the first template tag. Patch from k0001.
Refs #6274.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7084 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-04 04:52:37 +00:00
Malcolm Tredinnick 12ed18935b Fixed #6113 -- Added auto-escaping "safe" marking for the MultiWidget. Thanks, Martin Conte MacDonell.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-04 02:33:38 +00:00
Malcolm Tredinnick 10015fae4d Allow whitespace prior to an "extends" tag. This allows a little more formatting flexibility. Refs #6274.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7082 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-04 02:31:53 +00:00
Malcolm Tredinnick 5f477760ac Fixed #6480 -- Added application/pdf the list of content types we don't compress when sending to Internet Explorer. Thanks, Bastien Kleineidam.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7080 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-04 01:40:53 +00:00
Malcolm Tredinnick 0c4ea9b922 Fixed #6279, #6514 -- Fixed some HTML escaping problems in the urlize filter.
Based on a patch from SmileyChris with some test additions from Rob Hudson.
Thanks, both.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7079 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 08:54:26 +00:00
Malcolm Tredinnick 25c4ab99e3 Fixed #6109 -- Marked fieldset descriptions as safe from auto-escaping. Good
catch, SomeGuy.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7078 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 07:39:10 +00:00
Malcolm Tredinnick c03b5c1091 Fixed #6224 -- Small doc fixed for Argentinean localflavor. Thanks, Ramiro
Morales.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7077 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 04:44:00 +00:00
Malcolm Tredinnick 5a0d7223f5 Fixed #6531 -- Updated Argentinean Spanish translation from Ramiro Morales.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7076 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 04:36:49 +00:00
Malcolm Tredinnick 4378f19055 Fixed #6530 -- Updated Swedish translation form Mikko Hellsing.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 04:32:32 +00:00
Malcolm Tredinnick 570b9854e6 Fixed #6522 -- Updated Farsi translation. Thanks, cmorgh@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7074 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 04:29:38 +00:00
Malcolm Tredinnick 64c4973b0c Fixed #6451 -- Added weekday abbreviations to the German translation. Thanks,
john@fairviewcomputing.com.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7073 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 04:26:00 +00:00
Malcolm Tredinnick 09c755904e Fixed #6448 -- Updated Irish translation from Michael Thornhill.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 04:22:11 +00:00
Malcolm Tredinnick 01e4033b1e Fixed #6441 -- Updated Catalan translation from Marc Garcia.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7071 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 04:18:40 +00:00
Malcolm Tredinnick c8163cc454 Fixed #6415 -- Updated Icelandic translation from Jökull Sólberg Auðunsson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 04:16:02 +00:00
Malcolm Tredinnick f8c72fbaf4 Fixed #1984 -- Updated Italian translation from Nicola Larosa.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 04:10:01 +00:00
Malcolm Tredinnick 050b8a436a Fixed #6305 -- Always emit the got_request_exception signal, even when
DEBUG=True. Patch from Collin Anderson.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 04:06:35 +00:00
Malcolm Tredinnick 3815ff7ec5 Fixed #6313 -- Typo fix pointed out by thejaswi_puthraya.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 04:06:13 +00:00
Malcolm Tredinnick 8926a10fea Fixed #6303 -- Handle missing language specification in feed generation. Thanks, david.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7066 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 03:23:10 +00:00
Malcolm Tredinnick 787acefc73 Fixed #6423 -- Don't fall in a hole in the debug screen if somebody raises an old-fashioned string exception. Thanks, guettli.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7065 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 02:24:56 +00:00
Malcolm Tredinnick 8b29767f3f Fixed #6301 -- Added '*' to the characters not converted by iri_to_uri(), as
pointed out by samidh.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7064 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 02:21:51 +00:00
Malcolm Tredinnick 8ce7d4740e Fixed #6359 -- Fixed an oversight in the debug output: template loaders need not have a get_source() method. Thanks, Guido van Rossum.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7063 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 02:11:58 +00:00
Malcolm Tredinnick 2542b94fb2 Fixed #6465 -- Tweaked MergeDict.getlist() to work with Django's MultiValueDict class. Thanks, Matt McClanahan.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7062 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 02:02:41 +00:00
Malcolm Tredinnick f467c8cbc1 Fixed #6356 -- Added a mark_safe() call that was missed in a url() method. Thanks, tangerine.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7061 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 01:52:45 +00:00
Malcolm Tredinnick f45dab3061 Fixed #6479 -- Use settings.SESSION_COOKIE_NAME instead of hard-coded "sessionid" in the test client. Thanks, Bastian Kleineidam.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7058 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 01:37:29 +00:00
Malcolm Tredinnick 046d943148 Fixed #6495 -- Fixed debug traceback HTML output in the rare case when there is no source line to display. Thanks, Bastian Kleineidam.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 01:24:40 +00:00
Malcolm Tredinnick e5f7ed87d4 Fixed #6478 -- Allow tests to be interrupted with system exits and ^C. Thanks,
Bastian Kleineidam.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7056 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 01:24:22 +00:00
Malcolm Tredinnick e715ead55f Fixed #6383 -- Fixed a typo in the Irish counties list. Thanks, Jamie Quint.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7055 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 01:17:59 +00:00
Gary Wilson Jr cc7c6f3e46 Fixed #5422 -- Added a `raw` parameter to model `pre_save` and `post_save` signals, based on patch from `graham.carlyle@maplecroft.net`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7054 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-01 17:32:29 +00:00
Gary Wilson Jr 28353a682d Fixed `add_domain` call to use domain attribute of `current_site` so the function doesn't use the string representation of `current_site`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7051 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-31 22:33:50 +00:00
Gary Wilson Jr d72ce4f20c Fixed #6508 -- Fixed `add_domain` function to also work with https feed URLs, thanks Uninen.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-31 22:31:38 +00:00
Gary Wilson Jr 9fcaf3504c Fixed #6431 -- Fixed misspelling in projects template settings file, thanks Daniel Lindsley.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7041 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-28 05:40:57 +00:00
Gary Wilson Jr a01ebb4a50 Fixed #6354 -- Fixed url in `django/conf/urls/shortcut.py` to work with non-integer primary keys (refs #2033) and made use of the URL file in the admin urls.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-28 05:36:44 +00:00
Gary Wilson Jr 2e43934aed Fixed #6324 -- Fixed `get()` call in `UserFlagManager.flag()`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7039 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-28 05:29:09 +00:00
Gary Wilson Jr 332e68d550 Style fixes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7038 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-28 05:27:39 +00:00
Gary Wilson Jr ff707f502c Fixed #6419 -- Fixed verbosity level checks in loaddata command that were raised to unobtainable levels in [6883].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7037 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-28 03:53:50 +00:00
Gary Wilson Jr f780ce6176 Fixed #6471 -- Fixed stringfilter decoration of `force_escape` filter.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7033 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-28 02:30:53 +00:00
Gary Wilson Jr 80f5cafbc4 Fixed typo in testcases module.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7032 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-28 02:15:00 +00:00
Jacob Kaplan-Moss 755278253e Fixed #6302 for ImageFields.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7025 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-18 15:53:19 +00:00
Russell Keith-Magee 12efef0635 Fixed #6031 -- Added error handling for _pre_test in django.test.TestCase; exceptions during pre-test setup are now reported as test failures, rather than crashing the entire test framework. Thanks, Thomas Guttler <hv@tbz-pariv.de>.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7023 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-18 13:37:40 +00:00
Joseph Kocherhans fd20365b27 Fixed #6302. FileField no longer requires a value if one already exists. Thanks Brian Rosner and Øyvind Saltvik.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7021 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-17 18:03:21 +00:00
Gary Wilson Jr 298d76aed4 Fixed #3165 -- Really allow underscores when making a superuser, thanks `SmileyChris`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-13 04:03:36 +00:00
Gary Wilson Jr 38fe6bf0fa Fixed #6347 -- Fixed missing comma in `it_province.py` module, thanks Filippo Caprioli.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7017 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-13 03:50:57 +00:00
Malcolm Tredinnick b690a9970f Fixed #6329 -- Updated Croation (hr) translation from Aljosa Mohorovic.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7011 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-09 11:42:58 +00:00
Malcolm Tredinnick b253eab14a Fixed #6292 -- Updated Japanese translation from Makoto Tsuyuki.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7010 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-09 11:42:28 +00:00
Malcolm Tredinnick c2a5f91909 Fixed #6288 -- Updated Catalan translation from Marc Fargas.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7009 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-09 11:42:02 +00:00
Malcolm Tredinnick 2599ae8fef Fixed #6277 -- Updated Turkish translation (and moved authors into AUTHORS file). Thanks, Can Burak Çilingir.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7008 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-09 11:41:35 +00:00
Malcolm Tredinnick 041e24dbde Fixed a subtle corner case whereby sending a bad session ID generates new (unused) session entries in the database table.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-06 12:53:09 +00:00
Malcolm Tredinnick d1793f1774 Fixed #6248 -- Fixed typo in urlify.js. Pointed out by arien.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6999 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-06 03:55:23 +00:00
Malcolm Tredinnick a7da12d320 Fixed #5567 -- Added a "last" filter. Based on a patch from darkpixel.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6998 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-06 03:53:33 +00:00
Malcolm Tredinnick 1f6bc7ffa7 The "first" filter can return an unsafe string for safe input ( {{"&lt;"|first}} ), so change is_safe to False. Refs #5567.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6997 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-06 03:53:04 +00:00
Adrian Holovaty 3d52ce730f Reverted 'regroup' template tag changes from [6956], as they caused bug #6271, which affects one of my sites. I don't have time to inspect the #6271 patch, so I'm reverting this change in the interim, to fix the bug immediately.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6996 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-05 00:03:12 +00:00
Ian Kelly 6929c0d4d1 Fixed #6254: Made fetchone() in the oracle backend correctly convert
strings to unicode objects.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-04 22:51:22 +00:00
Ian Kelly 4ab27ab119 Fixed the Oracle backend mangling colorized unique_together SQL.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-04 20:26:13 +00:00
Adrian Holovaty 5496c50b62 Fixed #6299 -- Fixed an indentation error in django/core/mail.py introduced in [6987]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6989 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02 08:39:03 +00:00
Adrian Holovaty 1264bcf8b0 Fixed #5887 -- Consolidated some duplicate code in SafeMIMEText and SafeMIMEMultipart. Thanks, Carl Karsten
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6987 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02 05:29:10 +00:00
Adrian Holovaty f6336737a0 Fixed #6291 -- Fixed error in CASocialInsuranceNumberField documentation and error message. Thanks, jeff+django@ivany.org and arien
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02 05:23:21 +00:00
Adrian Holovaty 293f0f2360 Fixed #6295 -- Made the {% for %} tag a bit more efficient by creating a single context dictionary rather than recreating it each time through the loop. Thanks, Ned Batchelder
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02 05:01:03 +00:00
Adrian Holovaty bd0897baa7 Corrected a typo in the debug page -- 'Share this traceback on a public Web site'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6977 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-23 22:53:30 +00:00
Adrian Holovaty e7b338d10e Renamed 'reversed' variable to 'is_reversed' in ForLoop template tag implementation, to avoid potential conflicts with the 'reversed' built-in and to make the code more obvious
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-22 19:38:48 +00:00
Adrian Holovaty abffdf5940 Negligible cleanups to django.template.context
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6975 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-22 19:32:54 +00:00
Adrian Holovaty 55ae4e00a7 Negligible changes to django.template -- removed a useless docstring, converted another one to a comment
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6974 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-22 19:30:13 +00:00
Adrian Holovaty 36a06edcdf Removed lexer_factory() and parser_factory() functions in django.template, simplifying the compile_string() logic
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6973 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-22 19:28:21 +00:00
Adrian Holovaty eb95a50cd6 Removed a comment in django/template/__init__.py that suggests we would do 'crazy stack-frame stuff'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6972 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-22 19:20:02 +00:00
Adrian Holovaty 98d3da6389 Negligible formatting changes to django/template/__init__.py -- fixed some spacing issues, renamed NotImplemented to NotImplementedError and changed some 'raise' statements to use callable exceptions instead of the old-style comma technique
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6971 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-22 19:16:39 +00:00
Adrian Holovaty 6bcf1f0661 Changed an '== None' to 'is None' in Template.__init__()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6970 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-22 19:12:58 +00:00
Adrian Holovaty 6557dc954b Moved the various Debug classes in django.template to a new module, debug.py, so they're only loaded if DEBUG=True. This led to a DEBUG=False memory savings of one 4-KB memory block on my machine, according to ps
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6969 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-22 19:10:03 +00:00
Matt Boersma c5d3a925c7 Set Oracle stmtcachesize to 20 instead of 0 for a performance boost.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6965 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-21 18:49:07 +00:00
Matt Boersma 72d279a29f Rearranged an Oracle ALTER statement so it is run only once per new connection, not on every cursor creation. Thanks, Ian Kelly.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6963 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-20 23:06:30 +00:00
Gary Wilson Jr d1b5a0bde5 Removed some reverse string craziness from the regroup template tag argument checking and added a few syntax tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6956 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19 06:11:55 +00:00
Malcolm Tredinnick c506f4574a Fixed #6139 -- When sending email, made sure that the "to" and "bcc" sequences have the same type before concatenating.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6953 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19 04:51:35 +00:00
Malcolm Tredinnick a35ca605d6 Fixed #5670 -- Changed the validation of the UK postcode widget to allow for easier input. Normalisation still returns the same things as previously. Patch from scott@staplefish.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6952 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19 04:43:47 +00:00
Malcolm Tredinnick aec96649f0 Fixed #6208 -- Updated Dutch translation. Thanks, arien and v.oostveen@idca.nl.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6951 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19 04:27:18 +00:00
Malcolm Tredinnick 367867845f Fixed #6239 -- Fixed an auto-escaping problem with urlizetrunc. Thanks, SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6950 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19 04:20:02 +00:00
Malcolm Tredinnick 36a748787d Fixed #6238 -- Bumped up the length of data displayed in databrowse slightly. Patch from Nick Efford.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6948 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19 03:58:53 +00:00
Adrian Holovaty 0b7894423d Fixed comma splices in PendingDeprecationWarnings of form_for_model and form_for_instance from [6846]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6945 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19 03:40:39 +00:00
Adrian Holovaty ac3885c433 Changed the ImportError message from [6832] to improve wording
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6943 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19 03:31:26 +00:00
Malcolm Tredinnick ec72071615 Fixed #6197 -- Added (optional) formfield_callback argument to ModelForms.__new__. Patch from guido@python.org.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6940 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17 11:59:53 +00:00
Malcolm Tredinnick b279b75c87 Fixed #5596 -- Changed the static view for the development server so that Django doesn't crash if somebody tries to serve a 200MB file. Patch from eibaan.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6939 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17 11:46:48 +00:00
Malcolm Tredinnick b53fac8052 Fixed [6932] so that "django-admin.py help dumpdata" works again.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17 11:09:56 +00:00