Commit Graph

2496 Commits

Author SHA1 Message Date
Malcolm Tredinnick 595bf6b691 Fixed #1760 -- Unwound a subselect in an update for order_with_respect_to handling. Required for MySQL and doesn't hurt too much for other platforms. thanks, Christopher Lenz, James Turnbull and Simon Litchfield.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 13:56:36 +00:00
Malcolm Tredinnick ced90f4b81 Fixed a syntax error in the Plural-Forms header. This prevents Django from crashing.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 12:39:03 +00:00
Malcolm Tredinnick ea3e89cb1d Fixed a bunch of Python 2.3 issues. Two tests still fail, but this fixes the bulk of things.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 09:55:17 +00:00
Malcolm Tredinnick 36396fb430 Fixed #3766 -- Added in-memory caching for the sites framework. Will speed up all the "current site" lookups. Thanks, Matt Riggott.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 08:37:09 +00:00
Malcolm Tredinnick 99d12c5d70 Fixed #3651 -- Changed set_language_view() to require POST request is used, in accordance with the HTTP spec (it changes the user's state). Thanks, Fraser Nevett.
This is a backwards incompatible change for anybody previously using this view.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 07:33:45 +00:00
Malcolm Tredinnick 5188a18dbe Fixed #4964 -- Added Brazilian state field to localflavors. Thanks, William Alves de Souza.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 07:19:38 +00:00
Russell Keith-Magee 63dd4f5322 Fixed #3848 -- Added more comprehensive checks to ImageField validation, checking for image truncation or corruption. Thanks to Andrew C <andrewc-djangotrac1@piffle.org> for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 07:18:27 +00:00
Malcolm Tredinnick 0863a634f3 Fixed #4951 -- Improved host retrieval in sites.models.RequestSite. Thanks, Caleb.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 07:12:47 +00:00
Russell Keith-Magee 20ecbbd9e7 Fiex #5331 -- Modified newforms URLField to prepend http:// if no protocol is specified by the user. Thanks, SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 07:02:55 +00:00
Russell Keith-Magee 3358e2fec7 Fixed #5067 -- Fixed a problem with javascript popup widgets appearing in the wrong place if they were in a overflow=scroll block. Thanks to Erich Schmid for the original fix, and Robert Coup for the updated patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6172 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 06:43:46 +00:00
Malcolm Tredinnick 134bf3a26b Backed out [6165]. It breaks things for people using psycopg2 because it requires psycopg to also be installed due to imports.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 06:21:25 +00:00
Malcolm Tredinnick 3f030a7472 Removed really obsolete file. I've been informed by reliable sources that this should only affect World Online.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 06:09:15 +00:00
Malcolm Tredinnick 1b745be5a1 Fixed a typo from [6164].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 05:39:59 +00:00
Malcolm Tredinnick 300e19effc Fixed #4986 -- Improved get_host() host detection. Thanks, SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 05:39:42 +00:00
Gary Wilson Jr 30b24a6cce Refs #4299 -- Removed some code duplication in the postgresql introspection modules by letting the `postgresql_psycopg2` backend use identical functions from the `postgresql` backend.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6165 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 05:33:39 +00:00
Malcolm Tredinnick e70d7e6064 Fixed #987 -- Convert relative URI portions into absolute URIs in HTTP Location headers. Based on a patch from SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6164 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 05:28:00 +00:00
Russell Keith-Magee 2bec822ff3 Fixed #3895 -- Added ability to customize the context variable in the archive_index generic view. Thanks to marco.giusti@gmail.com and toke-django@toke.de.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 03:54:28 +00:00
Malcolm Tredinnick 70e5dce365 Fixed #3489 -- Added proper deepcopying to form fields so that widget instances get copied as well. Patch from Jonathan Buchanan and insin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 03:29:39 +00:00
Gary Wilson Jr da0fef756c Fixed #5123 -- Fixed ImageField to pass along keyword arguments in its formfield method.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 02:54:12 +00:00
Russell Keith-Magee 09145d2e5f Fixed #208 -- Modernized the syntax of the cycle tag to allow for spaces and variables in cycle values. Thanks to SmileyChris and Chris McAvoy for their work on this.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6153 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 02:49:21 +00:00
Russell Keith-Magee a2ce7669d9 Fixed #3421 -- Added IP and localhost validation to newforms URLField. Thanks, SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 02:11:24 +00:00
Russell Keith-Magee d14c756b5e Fixed #4919 -- Added 'last' marker on paginators. Thanks to patrick@vonautomatisch.atfor the idea, and nick@efford.org for the patch and docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6149 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 01:52:10 +00:00
Russell Keith-Magee 87e77ffca0 Fixed #1795 -- Added page_range to paginators in generic list views. Thanks to polarcowz@gmail.com and Marc Fargas <telenieko@telenieko.com> for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6146 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 01:01:02 +00:00
Malcolm Tredinnick cb9db44938 Fixed #5431 -- Added Argentinean localflavor. Thanks, Ramiro Morales.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14 00:58:57 +00:00
Malcolm Tredinnick ce249d4366 Fixed #4752 -- Make default ErrorList customisable in newforms display. Based on a patch from michal@logix.cz and SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 23:09:40 +00:00
Malcolm Tredinnick a7d0ad67dc Fixed #5326 -- Added Ukrainian map for Javascript slug generation. Thanks, Artyom Gnilov.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 22:42:30 +00:00
Malcolm Tredinnick e1cb961a9b Fixed #5370 -- Allow lazy translations in ValidationError classes. Patch from James Bennett.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6140 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 22:35:18 +00:00
Malcolm Tredinnick a9fd677cb3 Fixed #5403 -- Added Dutch localflavor. Thanks, Jan Rademaker.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6139 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 22:16:59 +00:00
Malcolm Tredinnick da7495cfa5 Fixed #5429 -- Made some small typographical tweaks to the Finnish translation. Thanks, akaihola.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 21:54:48 +00:00
Malcolm Tredinnick 3ac39749b1 Fixed #5337 -- Updated Hebrew translation. Thanks, Amit Ramon.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6137 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 19:52:59 +00:00
Malcolm Tredinnick c42fd07667 Fixed #5294 -- Updated Norwegian translation. Thanks, jonklo.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 19:52:26 +00:00
Malcolm Tredinnick 5724e33354 Fixed #5282 -- Added missing string to Turkish translation. Thanks, Evren Esat Özkan.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 19:51:53 +00:00
Malcolm Tredinnick 972e77f7e8 Fixed #5279 -- Added Khmer translation. Thanks, Sengtha Chay!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 19:51:26 +00:00
Malcolm Tredinnick 2190c97ef5 Fixed #5269 -- Updated Japanese translation. Thanks, Makoto Tsuyuki.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 19:39:50 +00:00
Malcolm Tredinnick fab3d388d2 Fixed #5220 -- Updated Hungarian translation from Szilveszter Farkas.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 19:39:10 +00:00
Malcolm Tredinnick 6e7ad62a78 Fixed #5197 -- Updated Spanish translation from Mario Gonzalez.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 19:38:24 +00:00
Malcolm Tredinnick ce04b03323 Fixed #4166 -- Updated Greek translation. Thanks, Dimitris Glezos.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 19:28:24 +00:00
Malcolm Tredinnick 196ec225c5 Fixed #3943 -- Fixed some typos in the Korean translation. Thanks, lurker86@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6129 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 19:27:50 +00:00
Adrian Holovaty a31bbda980 Fixed #5410 -- Added a __unicode__() method to RequestSite. Thanks, bos
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 14:40:08 +00:00
Adrian Holovaty 863ee0ef89 Fixed #5395 -- Changed URL of all language codes in project_template/settings.py. Thanks, Jarek Zgoda and mikkel@hoegh.org
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6123 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-13 14:37:22 +00:00
Russell Keith-Magee 50497e3867 Refs #5138 -- Refactored implementation of __contains__ in HttpRequest introduced in [6097] after a suggestion from Malcolm. Applied a similar refactor for MergeDict and Context which had comparable behavior.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6098 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 14:04:40 +00:00
Russell Keith-Magee db01d1d0a8 Fixed #5318 -- Added __contains__ method to HttpRequest, mirroring existing has_key method. Thanks for the patch, robbie@prelab.net.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6097 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 13:36:09 +00:00
Russell Keith-Magee 7115465afa Fixed #4478 -- Added a catch for an error thrown by PIL when attempting to validate MS OLE files.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6096 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 13:13:35 +00:00
Adrian Holovaty 2cf419d9ed Got runserver auto-reloading working again by removing what appeared to be debugging code in django.core.management.base. Refs #5369
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 04:37:23 +00:00
Adrian Holovaty 2554ea352e Restored 'django-admin.py --help'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 04:27:06 +00:00
Adrian Holovaty a77a02359d Updated runfcgi management command to include 'subcommand' argument to usage()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 04:25:55 +00:00
Adrian Holovaty a291952a7d Refactored some small parts of core.management -- ManagementUtility.execute() no longer takes an argument, and ManagementUtility.__init__() now takes argv
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 04:24:35 +00:00
Adrian Holovaty a247c726c2 Changed core.management print_help() methods to accept a prog_name argument instead of an argv list, in an attempt to figure out why auto reloading stopped working
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 03:46:35 +00:00
Adrian Holovaty c554858f6b Renamed 'args' variables in django.core.management to 'argv' to be more clear, and removed an unneeded import
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-11 02:49:07 +00:00
Russell Keith-Magee 12146f34fd Removed code that was recasting major errors found during application import. If an application can't be imported, it now throws a full stack trace with the problem, rather than reporting the problem as a one line message.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6087 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-10 07:00:46 +00:00