Commit Graph

4678 Commits

Author SHA1 Message Date
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 3eec925f73 Fixed a few errors in the documentation. Thanks, Matthew Flanagan, panni@fragstore.net and adamv.
Fixed #6411, #6426, #6524, #6555.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-18 23:43:12 +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
Malcolm Tredinnick d69f3ccfdb Fixed #6316 -- Updated FAQ link for one of our Python on Windows links.
Thanks, Marc Fargas.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7128 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-18 23:08:28 +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 b893eb4d7a Removed a portion of the test suite that was a pain on Python 2.3.
No actual useful functionality is lost by this; it's just a 'keep the Buildbot
happy" thing.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7120 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-15 15:17:48 +00:00
Malcolm Tredinnick d9a3c1b9fc Made a bunch of tiny documentation formatting and typo fixes.
Thanks, quicklizard, adamv, Gary Wilson, superjudge and David Pretty.

Fixed #6554, #6573 ,#6592, #6595, #6608.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7119 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-15 11:38:53 +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 5078010a31 Fixed #6600 -- Corrected typos in contenttype documentation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7111 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-14 05:26:52 +00:00
Malcolm Tredinnick 7d7119897c Updated the documentation for patterns() to note Python's 255 argument limit.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-14 04:54:03 +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 ad23fff759 Fixed #6597 -- Corrected spelling mistake. Thanks for the report, Atul Varma.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-13 23:17:55 +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 6674718213 Fixed #6278 -- Documented that the 404 template is passed a RequestContext and the 500 handler is not. Thanks, Rob Hudson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-04 01:48: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 d18a114f86 Fixed #6326 -- Made the test for translations of filter arguments test something that has a chance of failure. Thanks akaihola.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7060 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03 01:49:55 +00:00