Commit Graph

4507 Commits

Author SHA1 Message Date
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 93c8e94bd6 Fixed another typo in templates docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-13 19:07:14 +00:00
Gary Wilson Jr 7cbbada662 Fixed typo in templates docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7019 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-13 18:50:59 +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
Gary Wilson Jr ff0ccc611f Fixed #6360 -- Updates to the distributions docs for Ubuntu and Gentoo, thanks tvrg.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7016 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-13 03:38:22 +00:00
Gary Wilson Jr 4ee22e480e Fixed #6365 -- Added `blank=True` to parent attribute of `m2o_recursive` model example, thanks dgrant.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-13 02:19:06 +00:00
Gary Wilson Jr 9d18adde00 Fixed #6367 -- Fixed link to zen of Python, thanks N00ne and dtulig.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7014 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-13 02:14:21 +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 3760e7a1e0 Fixed #6345 -- Django supports week numbers all the way up to 53, not just 23.
Thanks, djoume.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7007 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-09 07:32:05 +00:00
Malcolm Tredinnick f0b14067db Fixed #6331 -- Fixed some typos in shortcuts.txt. Thanks, Herbert Poul.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7006 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-09 07:19:56 +00:00
Malcolm Tredinnick 421b03af2c Fixed #6341 -- Added missing link for text introduced in [6946].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-09 06:52:42 +00:00
Gary Wilson Jr 8775c17930 Fixed #6330 -- Fixed reST error in templates documentation, thanks `SmileyChris`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-06 22:09:16 +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 70fe1ef262 Fixed Python 2.3 problem I introduced all the way back in [6852]. :-(
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7000 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-06 07:23:21 +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
Gary Wilson Jr d6d1188ed0 Middleware regression test fixes:
* Added a models.py file so the tests run.
 * Reset `settings.DEBUG` to `False` at the end of the `test_append_slash_no_redirect_on_POST_in_DEBUG` test so it doesn't bleed over to other tests.
 * Removed unused import.
 * Minor docstring fixes.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6991 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-03 02:14:29 +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 aa728422bc Fixed #6247 -- Added CsrfMiddleware to docs/middleware.txt. Thanks, Uninen
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02 05:13:46 +00:00
Adrian Holovaty 8bb07998ca Fixed #6252 -- Clarified the --settings option in docs/django-admin.txt. Thanks, whiskybar
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02 05:08:25 +00:00
Adrian Holovaty 8abd63f450 Fixed #6287 -- Fixed typos in docs/sites.txt. Thanks, arien and Horst Gutmann
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6982 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02 05:01:54 +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
Adrian Holovaty 0a348bb269 Fixed #6249 -- Fixed error in docs/syndication_feeds.txt example. Thanks, darugar
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6964 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-21 03:16:03 +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