Gary Wilson Jr
9a5301ccbc
Made the Paginator class a bit more backwards compatible with the lecacy `ObjectPaginator` class by using the `ObjectPaginator`'s `_get_count` method. Instead of explicitly checking for an instance of `QuerySet`, this now allows any object with a `count()` or `__len__()` method defined to be passed to Paginator. For one, this is useful when you have custom `QuerySet`-like classes that implement a `count()` method but don't inherit from `QuerySet` explicitly.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8121 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 23:01:55 +00:00
Malcolm Tredinnick
6a287ed946
Fixed #6217 -- Reduced the memory used by each ugettext_lazy() call.
...
Thanks to Jakub Wilk for analysis and the initial patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8120 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 22:51:49 +00:00
Jarek Zgoda
7b89abaf48
Missing compiled messages file from previous commit.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8118 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 20:03:35 +00:00
Jarek Zgoda
03ef8ac114
Updated Polish translation (Austrian localflavor)
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8117 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 20:02:20 +00:00
Ludvig Ericson
dc7581da2a
Updated Swedish translations.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 19:41:22 +00:00
Ludvig Ericson
b790f34542
Updated Swedish translations.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8115 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 19:38:35 +00:00
Malcolm Tredinnick
82a85fdbae
Fixed #6427 -- Added some more features to the Austrian localflavor.
...
Thanks, Horst Gutmann.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 18:54:56 +00:00
Malcolm Tredinnick
2c6d1e8ebc
Fixed #7886 -- Reordered some code in Query.results_iter() to ensure that all
...
the prequisites are correctly initialised prior to using them. Only affects
Oracle and other db backends requiring resolve_columns() (e.g. MS SQL?)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 18:38:56 +00:00
Malcolm Tredinnick
4fee39c63c
Fixed #7872 -- Fixed a missed case of promoting table joins when using
...
disjunctive filters. Thanks to Michael Radziej for the failing test case.
problem.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 18:16:17 +00:00
Gary Wilson Jr
4774c8d673
Corrected spacing in warning message.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 17:25:37 +00:00
Gary Wilson Jr
020f965087
Fixed #7988 -- Corrected import of the warnings module, thanks richardh.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 17:24:35 +00:00
Russell Keith-Magee
661f62be3c
Fixed #7913 -- Corrected backwards incompatible parts of [7977] when optgroup handling was added to field choices (Ticket #4412 ). Thanks to Michael Elsdorfer (miracle2k) for the report and patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8102 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 07:22:39 +00:00
Malcolm Tredinnick
3cbe73692e
Fixed #7778 -- Fixed a tricky case of foreign key clearing with inherited
...
models. Patch from James Murty.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8100 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 04:18:52 +00:00
Malcolm Tredinnick
f48855178d
Fixed #7530 , #7716 -- When using select_related() and encountering a NULL
...
related object, populate the attribute correctly. Patch from Bastien Kleineidam.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8098 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-27 01:18:23 +00:00
Malcolm Tredinnick
103d484807
Fixed #7658 -- Added some Windows-specific tempfile handling. The standard
...
stuff doesn't work with the way Django's file uploading code wants to operate.
Patch from Mike Axiak.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8096 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 22:48:51 +00:00
Malcolm Tredinnick
e29aece743
Fixed #4534 -- Added an "else" option to the "ifchanged" template tag.
...
Patch from SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 22:09:43 +00:00
Malcolm Tredinnick
f763ff4d02
Fixed #7809 -- A few small updates to the French translation. Thanks, cbay.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8094 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 22:02:07 +00:00
Malcolm Tredinnick
03373f1e24
Fixed #7345 -- In [8089], I'd forgotten that urlparse.urlsplit() didn't return
...
something with attributes until Python 2.5. Thanks, Honza Kral and apollo13.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 17:08:53 +00:00
Malcolm Tredinnick
66612ef529
Fixed #6413 -- Fixed a deadlock situation in the locmem culling implementation.
...
Thanks, Joe Holloway.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 05:27:59 +00:00
Malcolm Tredinnick
108b604b51
Fixed #7345 -- When normalising the URLField form field, attach a trailing
...
slash when only a host (no path) is given. Thanks, jpwatts.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 05:18:39 +00:00
Malcolm Tredinnick
badde8a7e5
Fixed #7793 -- Handle sitemaps with more than 50,000 URLs in them (by using
...
pagination). Patch from Julian Bez.
The docs patch here could probably do with some rewording.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 05:07:16 +00:00
Malcolm Tredinnick
a26ba33111
Fixed #7686 -- Added an Austrian localflavor. Thanks, bernd.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8087 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 04:25:42 +00:00
Malcolm Tredinnick
319a31464d
Fixed #7966 -- Send email if it has "bcc" recipients and no "to" recipients.
...
Patch from Zal.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8086 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 04:10:52 +00:00
Malcolm Tredinnick
6f16b5bad2
Fixed #7967 -- Make sure the __contains__ method in the cache backends call the
...
right has_key() method for the subclass. Patch from Marty Alchin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8084 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 03:58:31 +00:00
Malcolm Tredinnick
f49c5c23f9
Fixed #7574 -- Fixed the handling of lazy translation in email headers.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 03:37:25 +00:00
Malcolm Tredinnick
f8713ee243
Fixed #7959 -- Small typo fix in pt_BR. Thanks, marinho.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8080 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 03:05:40 +00:00
Malcolm Tredinnick
453a5bcd97
Fix #7910 -- Added a missing import used when "django-admin.py compilemessages"
...
is run from a bad root directory.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8079 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26 03:01:33 +00:00
Malcolm Tredinnick
7c33cc7f5e
Fixed #7398 -- Allow for custom cache-backends to be used.
...
Based on a patch from Lau Bech Lauritzen and Brenton Simpson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-25 18:51:32 +00:00
Luke Plant
3992683ea3
Fixed #6109 again.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8073 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-25 14:44:56 +00:00
Nicola Larosa
dd5194ad7e
Update to the Italian translation. No msgstr changed/added/deleted, just
...
line numbers in comments. Also fixes #7945 : thanks, garcia_marc.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-25 06:13:38 +00:00
Matt Boersma
96d141dfda
Fixed Oracle backend failure in test suite for modeltests.queries. Item.objects.all()[0:0] was optimizing out the limits clause and returning all rows.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-24 20:11:37 +00:00
Jarek Zgoda
f5801e5fd1
Updated Polish translation
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-24 12:34:49 +00:00
Marc Garcia
466ddfa798
Updated Spanish translation.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8067 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-24 11:37:45 +00:00
Jacob Kaplan-Moss
7b3cf13d32
Improved admin model registration options: you can now register using register(Model, **options) and even register(Model, ModelAdmin, **options). This isn't documented yet -- a much expanded version of docs/admin.txt is on the way.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8063 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-23 18:58:06 +00:00
Russell Keith-Magee
508016c0f4
Fixed #7914 -- Added some missing __init__.py files that were missed when the ping_google command was added. Thanks to bernd for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8062 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-23 14:15:03 +00:00
Malcolm Tredinnick
a7b556ca04
Allow for matches against unsaved objects in querysets (which will therefore
...
match nothing). This allows for some more straightforward code in the admin
interface.
Fixed #7488 (all the debugging there was done by Brian Rosner, who narrowed it
down to the item in this patch).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8061 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-23 06:12:15 +00:00
Brian Rosner
3912403550
Added the ability to customize the prefix value on an inline formset. Fixes #7899 . AThanks for the tip Peter of the Norse.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8060 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-23 04:46:31 +00:00
Brian Rosner
9d8f41baac
Made the semi-private _max_form_count live on the public API of formsets by renaming it to max_num. This also removes the ManagementForm use of MAX_COUNT since that usage should just be referenced to the formset's max_num property. Refs #7899 . Thanks Peter of the Norse for straightening me out.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8058 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-23 04:28:52 +00:00
Brian Rosner
62d9e278d7
Fixed #7898 -- Moved formset media definition to a media property in InlineAdminFormSet display helper and added InlineAdminForm media at the same time. This now properly renders all media associated with the formset and its display helper children. Thanks dima.kozlov for the report.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8057 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-23 03:25:41 +00:00
Malcolm Tredinnick
8745beccb1
Fixed #7813 -- Allow pickling of Query classes that use select_related().
...
Based on a patch from Justin Bronn.
The test in this patch most likely breaks on Oracle. That's another issue.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8053 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22 08:23:20 +00:00
Malcolm Tredinnick
83e97ecf88
Fixed #7791 -- Fixed a really silly error I introduced in [7926]. :-(
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22 07:37:09 +00:00
Malcolm Tredinnick
6ef47cfe5f
To ensure that a model BooleanField has an explicit value set (and since it's
...
not required, by default), set the default properly in the constructor.
This code can be simplified when/if we resolve the
BooleanField/NullBooleanField overlap, but the current stuff is backwards
compatible. This would previously cause SQL errors on PostgreSQL and
interesting failures in subtle ways on MySQL and SQLite.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8050 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22 04:49:32 +00:00
Adrian Holovaty
0894ddb2bb
Fixed #7848 -- Removed a bunch of code that wasn't contributing to society. Thanks, julien
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22 03:26:25 +00:00
Adrian Holovaty
29f0e8182f
Fixed #7847 -- Removed a whole bunch of unused imports from throughout the codebase. Thanks, julien
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22 03:24:09 +00:00
Adrian Holovaty
8bc442e771
Fixed #7304 -- Gave AnonymousUser a has_perms() method, which it was lacking
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8044 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22 03:05:40 +00:00
Jacob Kaplan-Moss
d3f4de9c18
Bumped version number for 1.0-alpha release.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8035 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22 01:15:43 +00:00
Jacob Kaplan-Moss
863f4eb1d7
Fixed #6755 : model inheritance now works in the admin. Thanks, sloonz and Michael Placentra.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8033 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22 01:10:06 +00:00
Malcolm Tredinnick
c236874c48
Fixed #7871 -- Added some more bullet-proofing in PATH_INFO determination,
...
since Django would like it to at least contain a '/' (rather than being an
empty string).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8032 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-21 22:13:56 +00:00
Jacob Kaplan-Moss
f3ec0c18b1
Modified the comments in the skeleton urls.py to be more clear about how to enable the admin. Refs #7824 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8026 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-21 17:10:27 +00:00
Brian Rosner
4f1cbaa93e
Moved RedirectAdmin in django.contrib.redirects to an admin.py module.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-21 16:01:05 +00:00