Commit Graph

4141 Commits

Author SHA1 Message Date
Adrian Holovaty 32db67e6f9 Fixed #8957 -- Fixed incorrect error message when Admin prepopulated_fields refers to a field that does not exist. Thanks, charmless
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9002 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-10 06:06:04 +00:00
Adrian Holovaty 40cb11a554 Moved the bulk of the shortcut() function in django/views/defaults.py to a new module, django/contrib/contenttypes/views.py. As a result, django/views/defaults.py no longer relies on django.contrib.contenttypes. Of course, the shortcut() function is still available in the former module, for backwards compatibility. See the new FutureBackwardsIncompatibleChanges wiki page.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9001 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-10 05:56:34 +00:00
Adrian Holovaty 5cc93500e8 Fixed #8959 -- Removed redundant calls to the 'escape' template filter in the django.contrib.comments templates. Thanks, zgoda
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9000 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-10 05:14:59 +00:00
Justin Bronn 152b9ba717 Fixed #8881 by specifying the geometry column name; added the `geom_col_name` classmethod to `GeometryColumns` for Oracle and PostGIS.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-09 19:19:51 +00:00
Marc Fargas ff22efef5d Closes #8973. Updated Telugu Translation. Thanks Thejaswi Puthraya.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8992 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-09 16:07:06 +00:00
Adrian Holovaty 640f198111 Fixed #8978 -- We now print a helpful error message for 'manage.py dbshell' if the client executable is not found. Previously we were displaying a traceback
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-09 02:18:06 +00:00
Adrian Holovaty 42a878cfea db: Gave each DatabaseClient class an 'executable_name' attribute (e.g., 'psql' or 'mysql'), so that we can use it to make a more helpful error message. Refs #8978
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8989 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-09 02:13:58 +00:00
Adrian Holovaty 1bfed070c3 Fixed #7929 -- Removed some snippets of admin code that weren't doing anything, and tightened up a few more lines. Plus, an indentation fix. Thanks, julien
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8985 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-08 05:45:17 +00:00
Adrian Holovaty 6bdb7b9529 Fixed #8172 -- Improved a whole bunch of contrib templates (admin, databrowse, admindocs, etc.) to remove unnecessary 'escape' filters, given autoescaping. Also removed unnecessary {% if %} tags and shortened some {% if %}/{% else %} tags to use {% firstof %}. Thanks for the patch, benspaulding
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8984 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-08 05:19:28 +00:00
Matt Boersma 1b39622327 Fixed re-raising of ORA-01400 as an IntegrityError in a way that works on Python 2.3 and 2.4 as well.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8965 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-04 16:41:59 +00:00
James Bennett 42ef6557a9 Bump version number for Django 1.0 release
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8960 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 23:38:45 +00:00
Malcolm Tredinnick 96a417f91d Fixed two XHTML errors pointed out by Jarek Zgoda. Refs #8855.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8958 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 22:46:39 +00:00
Malcolm Tredinnick 75528786a9 Fixed #8841 -- Fixed a case of ForeignKeys to models constructed with
inheritance.

This patch is uglier than it needs to be (see comment in patch) to ensure no
accidental bug is introduced just before 1.0. We'll clean it up later.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8957 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 22:45:33 +00:00
Malcolm Tredinnick c949665678 Fixed #8856 -- Updated Latvian translation from Edgars Jēkabsons.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8956 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 22:22:37 +00:00
Aljosa Mohorovic 9d407fb5e8 updated croatian (hr) translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8954 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 21:29:14 +00:00
Malcolm Tredinnick 559c0da7c1 Fixed a small initialisation edge-case in the raw_id_fields section of admin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8951 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 21:16:05 +00:00
Malcolm Tredinnick db29f06409 Fixed #5900 -- Updated Traditional Chinese translation from Terry Huang .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 20:05:15 +00:00
Malcolm Tredinnick a1e9b98c54 Fixed #8832 -- Position the error icons on the right of the screen in the admin
interface when using right-to-left languages.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8935 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 19:51:20 +00:00
Malcolm Tredinnick 422ba9d2ae Fixed #8844 -- Russian translation update from Grigory Fateyev.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8934 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 18:47:22 +00:00
Malcolm Tredinnick e1f1bda3c7 Fixed #8614 -- Typo fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8933 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 18:44:19 +00:00
Malcolm Tredinnick d88688014f Fixed #7588 -- Inherit fields from concrete ancestor classes via abstract base
classes. Based on a patch from emulbreh.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8932 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 18:38:43 +00:00
Jannis Leidel 9a89d1eb9f Closes #8842 - Updated German translation, thanks Florian Sening.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8931 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 18:05:43 +00:00
Malcolm Tredinnick 399abd7fe8 Changed the reverse() call for creating URLs to convert a "." in the reg-exp
pattern to a "." in the final output. This hides what is probably a bug in the
pattern (the user almost certainly should have written "\."), but it will avoid
a large number of "bug" reports about reverse().


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8929 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 17:53:45 +00:00
Marc Fargas c164305d7c Closes #8836, Updated Slovenian translation. Thanks Gasper Zejn.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 13:40:14 +00:00
Marc Fargas eea68d9ff4 Close #8815. Updated Arabic translation (again)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 12:52:51 +00:00
Marc Fargas bb5e3a3b6d Closes #8837. Updated Finnish translation. Thanks Ville Säävuori.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 11:45:53 +00:00
Marc Fargas 760aaae749 Closes #8836, Updated Slovenian translation. Thanks Gasper Zejn.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8920 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 11:41:33 +00:00
Marc Fargas 574fe75984 Closes #8834, Updated Macedonian translation. Thanks Georgi Stanojevski.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8919 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 11:41:03 +00:00
Marc Fargas 58c58cf1ca Closes #8815, Fix date/time formats for Arabic. Thanks Ossama M. Khayat.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8918 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 11:40:37 +00:00
Marc Fargas 116e17414b Closes #8840, Updated Norwegian translation; Thanks jonklo.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8917 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 11:35:57 +00:00
Nicola Larosa 20147a33c7 Italian translation updated: string flow.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8916 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 08:52:59 +00:00
Jannis Leidel 7b3843ca7e Updated German translation. Thanks to everyone in #django-de.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8915 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 08:18:54 +00:00
Marc Fargas d1bfa02320 Closes #8831, Updated Turkish translation, thanks Metin Amiroff.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8914 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 07:25:29 +00:00
Marc Fargas 4b38af152d Fixed #8815 -- Arabic translation update from okhayat.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8913 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 07:22:07 +00:00
Marc Fargas 57d874b207 Updated Estonian translation. Thanks Erik Allik.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8912 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 07:11:31 +00:00
Malcolm Tredinnick 1794446b28 Fixed #8828 -- Trimmed some trailing whitespace that might have been causing a
problem for Google AppEngine.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8911 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 06:22:28 +00:00
Malcolm Tredinnick fd78e89d1e Fixed #8830 -- Updated the recently changed string for the Polish translation.
Thanks, Piotr Lewandowski.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8909 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 06:14:01 +00:00
Malcolm Tredinnick 780f239fa7 Fixed #8825 -- Fixed a small error model field setup (on the model class) from
r8855. Patch from Christofer Bernander. Test based on one from cgrady.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 05:53:50 +00:00
Malcolm Tredinnick 43f901e581 Updated the English language PO files to match the strings in the final release.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8907 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 05:42:08 +00:00
Malcolm Tredinnick 42393ff604 Fixed #8812 -- Fixed up the positioning of the "delete" link in the admin
interface for right-to-left languages (Hebrew, Arabic, etc). Patch from Jannis
Leidel.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8903 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 04:22:39 +00:00
Malcolm Tredinnick 1d1bfd24f8 Fixed #8824 -- Updated the single changed string in the Catalan translation.
Thanks, arien.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8902 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 03:57:05 +00:00
Malcolm Tredinnick 2b06802f69 Fixed #8821 -- Spanish translation update (just the changed string from the
security update) from arien.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8901 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 03:56:54 +00:00
Malcolm Tredinnick 4431b9df6c Fixed #8827 -- Hebrew translation update from Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8900 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 03:53:31 +00:00
Malcolm Tredinnick 8a54b1b01b Fixed #8796 -- Another small Brazilian Portugese update. Thanks, Luciano Ramalho.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8899 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 03:53:20 +00:00
Malcolm Tredinnick 61cc4a1eee Fixed #8819 -- Don't include two copies of extra-select columns in the query.
This was triggered by r8794, but was, in fact, fairly fragile before then. The
current fix is the correct way we should be doing this.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8898 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 03:48:25 +00:00
Malcolm Tredinnick d2ca6fd54e Fixed #8818 -- Updated changed string in German translation. Thanks, Michael
Radziej.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8897 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 02:49:06 +00:00
Malcolm Tredinnick 735337c771 Fixed #8796 -- Updated Portugese Brazilian translation from Guilherme M. Gondim.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8896 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 02:44:54 +00:00
Malcolm Tredinnick f5c80ba939 Fixed #8661 -- Updated French translation from David Larlet.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8895 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 02:42:52 +00:00
Malcolm Tredinnick 4ff1819e28 Fixed #8176 -- Updated Japanese translation from Takashi Matsuo.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8894 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 02:41:29 +00:00
Malcolm Tredinnick b019a88073 Fixed #8815 -- Arabic translation update from okhayat.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8893 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 02:39:25 +00:00
Malcolm Tredinnick 7515ae1fe0 Fixed #8820 -- Dutch tranlation update from arien.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8892 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 02:39:13 +00:00
Ludvig Ericson 146f2aa667 Updated Swedish translations.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8891 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 02:37:43 +00:00
Ramiro Morales a04c6b1321 Updated literal changed in [8877] in Argentinean spanish translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8890 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 01:17:42 +00:00
Jacob Kaplan-Moss 67813c65e1 Bumped version to rc1.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8888 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 00:20:17 +00:00
Malcolm Tredinnick 85ebb91846 Fixed #8669 -- Use a consistent version of create() across the board for
model/field instance creation. Based on a patch from Richard Davies.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8884 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-03 00:09:33 +00:00
Jacob Kaplan-Moss 0e5faf225c Security fix. Announcement forthcoming.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 21:10:00 +00:00
Jacob Kaplan-Moss f6a3652eb2 Fixed #8788: fixed a few typoes in [8805]. Thanks, Matthew Flanagan and mir.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8872 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 19:33:56 +00:00
Jacob Kaplan-Moss 7a9b55ddc4 Fixed #2612: fixed display of admin `help_text` with multiple fields on the same line. Thanks to Nathan Borror for the original patch, and jezdez for a little cleanup.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 19:25:27 +00:00
Brian Rosner 577640bd04 Fixed #8805 -- Make sure proper type coercion happens before dumping data into join for limit_choices_to when building the URL parameters for the ForeignKeyRawIdWidget popup.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 18:57:10 +00:00
Brian Rosner c1de41f4d2 Fixed #7973 -- Added exclude to BaseModelAdmin to make everything consistent with the form/formset factories. Refs #8071 to make it easier to get at exclude. Thanks julien for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8861 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 17:26:24 +00:00
Justin Bronn 326b26656a Fixed `GeoRSSSitemap` to no longer use both `args` and `kwargs` with `urlresolvers.reverse` (no longer allowed since r8760).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8860 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 17:13:39 +00:00
Jacob Kaplan-Moss 24d7b49849 Fixed #8496: added a note about admindocs to the project template and the tutorial. Thanks, ericvw.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 16:52:42 +00:00
Jacob Kaplan-Moss 23f012dbfa Cleaned up a bunch of minor doc stuff:
* Removed flatpages/redirects README; no other contrib apps have those.
  * Cleaned up top-level README to be more readable.
  * Removed outdated references to old docs (Fixes #8701)

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 16:42:13 +00:00
Jacob Kaplan-Moss 79d2ee3b6d Fixed #8309: subclasses now inherit `GenericForeignKey` correctly. There's also now an internal API so that other "virtual fields" like GFK can be inherited as well. Thanks, msaelices.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8855 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 15:26:00 +00:00
Jacob Kaplan-Moss 98e1cc92f4 Fixed #8795: unique_together validation no longer fails on model forms that exclude fields included in the check. Thanks, Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8854 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 14:20:11 +00:00
Malcolm Tredinnick 5c32fe7fad Fixed #8790 -- Multi-branch join trees that shared tables of the same name were
sometimes also sharing aliases, instead of creating their own. This was
generating incorrect SQL.

No representative test for this fix yet because I haven't had time to write one
that fits in nicely with the test suite. But it works for the monstrous example
in #8790 and a bunch of other complex examples I've created locally. Will write
a test later.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8853 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 13:52:07 +00:00
Marc Fargas 2a14acb5f4 Closes #8791, Updated Turkish translation. Thanks Metin Amiroff.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 10:19:07 +00:00
Malcolm Tredinnick f31425e8e2 Fixed #7154 -- Inherit all model managers from abstract base classes.
Also added documentation describing how manager inheritance works (and when
manager aren't inherited). Based on some patches from sebastian_noack and
emulbreh.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 09:04:54 +00:00
Aljosa Mohorovic cf5087fdb2 update for croatian language (should be 100%)
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8850 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 08:35:22 +00:00
Marc Fargas e276ad0109 Updated Catalan translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8849 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 07:46:19 +00:00
Marc Fargas 3b7c57587c Updated Spanish translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 07:45:45 +00:00
Jarek Zgoda e0a7a9225e Update Polish translations
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 06:49:06 +00:00
Brian Rosner 0cd5caa6a8 Fixed #8787 -- Fixed failing admin_widgets tests. This fixes ManyToManyRawIdWidget which was broken with [8823]. Thanks Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8846 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 06:10:14 +00:00
Ludvig Ericson 67e141a7cd Updated Swedish translations.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 05:27:35 +00:00
Malcolm Tredinnick 63c9b7bf06 Avoid a deprecation warning when running on Python 2.6. Patch from Karen Tracey.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8841 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 03:04:28 +00:00
Malcolm Tredinnick 54e02cc92b Updated Norwegian translation from Jon Lønne. Fixed #8785.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8840 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 02:50:23 +00:00
Malcolm Tredinnick 4aa0714916 Updated Macedonian translation from Georgi Stanojevski. Fixed #8783.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8839 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 02:49:04 +00:00
Malcolm Tredinnick c57c495a19 Updated Finnish translation from Ville Säävuori and Antti Kaihola. Fixed #8782.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8838 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 02:47:55 +00:00
Malcolm Tredinnick 51195f75dc Updated Arabic translation from Ossama M. Khayat. Fixed #8781.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8837 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 02:45:54 +00:00
Malcolm Tredinnick 91e646aa74 Updated Czech translation from Petr Marhoun. Fixed #8779.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8836 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 02:41:55 +00:00
Malcolm Tredinnick 1a9ed22d06 Dutch translation update from Rudolph Froger. Fixed #8776.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 02:41:45 +00:00
Malcolm Tredinnick 0ac2e3dd83 French translation update from David Larlet. Fixed #8661.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8834 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 02:35:40 +00:00
Malcolm Tredinnick ffd47e7383 Japanese translation update from Takashi Matsuo. Fixed #8176.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 02:35:29 +00:00
Malcolm Tredinnick 12f6259903 Fixed #8439 -- Complex combinations of Q-objects (using both conjunctions and
disjunctions) were producing incorrect SQL when nullable relations were
involved. This fixes that.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 02:16:41 +00:00
Malcolm Tredinnick 3cdfb47e93 A typo fix that fortunately wasn't creating invalid SQL, just slightly less
efficient than possible SQL in some odd cases (found via code inspection, not
any particular failing example).


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8831 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 00:50:19 +00:00
Malcolm Tredinnick 1b615ac46d Get the join promotion code (a bit more) correct when constructing joins for ordering.
Yes, this really is a commit that fixes an oversight in a commit that fixed an
oversight. One day I'll get it right.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-02 00:20:10 +00:00
Ian Kelly 6211527fa2 Replaced exact lookups of the empty string with isnull lookups in Oracle. Fixes the testPreventDuplicateComments case.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8827 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 23:18:42 +00:00
Malcolm Tredinnick a9465a75de Fixed a case of incorrect parsing of quanitifers in reg-exp patterns.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8825 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 23:03:03 +00:00
Brian Rosner eefec151d1 Fixed #2612 -- Fixed admin formatting when help_text is used with multiple fields on the same line.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8824 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 22:59:43 +00:00
Brian Rosner ce47d4ab83 Fixed #8648 -- Admin no longer ignores to_field. Thanks for the help Karen Tracey and SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8823 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 22:43:38 +00:00
Malcolm Tredinnick dcb0e8f959 Fixup for Python 2.3.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8822 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 22:32:40 +00:00
Jacob Kaplan-Moss d86a702d37 Fixed #8777: use better capitalization in unique together error message. Thanks, Petr Marhoun.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 22:22:12 +00:00
Jacob Kaplan-Moss 3a18002bbd Fixed #8210 and #8664: moved `USStateField` and `PhoneNumberField` to `django.contrib.localflavor.us`. This is a backwards-incompatible change, albeit a minor one; just add an aditional `import` and go on your way.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8819 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 22:15:35 +00:00
Ramiro Morales 4f225d44ce Updated Argentinean spanish translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 22:05:18 +00:00
Brian Rosner 2487e3ae37 Removed a conditional that slipped by that makes inline model formsets fail validation when re-submitted.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8817 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 21:33:15 +00:00
Brian Rosner 7c7ad041b3 Fixed #7975 -- Callable defaults in inline model formsets now work correctly. Based on patch from msaelices. Thanks for your hard work msaelices.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8816 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 21:28:32 +00:00
Jacob Kaplan-Moss d5cc16b471 Fixed #8076: fixed `get_(next/previous)_by_date` when used with subclasses. Thanks, bjornkri and jan_oberst.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 21:04:01 +00:00
Marc Fargas b4d3f4e004 Closes #8771, Updated Hebrew translation. Thanks Alex Gaynor.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8813 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 20:45:34 +00:00
Jacob Kaplan-Moss 89633c3077 Fixed a small oversight in [8750]; thanks for the sharp eyes, Warren. Fixes #8616.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8812 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 20:25:16 +00:00
Jannis Leidel 7239429851 Updated German translation for r8805
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 20:17:00 +00:00
Ian Kelly d2f420ec8a Corrected Oracle DatabaseError definition.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8810 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 19:58:41 +00:00
Nicola Larosa 9b7dc6a3d6 Italian translation updated. String thaw...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8809 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 19:41:50 +00:00
Ian Kelly c887d71e76 Fixed escaping of wildcard characters in iexact lookups in Oracle.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8808 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 19:37:48 +00:00
Jacob Kaplan-Moss 7ecdf47bd0 Fixed #8115: avoid a infiniate loop when collecting related objects for deletion.
I can't reproduce the original error leading to #8115 and the patch. However, the only harm this change could cause is to raise more `CyclicDependency` exceptions than strictly necessary. That's better than infinite loops, at least, and it's easier to clean up in the future when we figure out the actual fix.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8807 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 19:35:03 +00:00
Jacob Kaplan-Moss d7e9bb0571 Repaired an oversight from [8772] that let made certain types of fields with choices fail. Fixes #6967 again.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8806 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 19:20:03 +00:00
Jacob Kaplan-Moss ea05e61b2b Fixed #8209: `ModelForm`s now validate unique constraints. Alex Gaynor did much of this work, and Brian Rosner helped as well.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 19:08:08 +00:00
Ian Kelly 5f31e9bd33 Fixed extra_select with DateQuery in Oracle
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8804 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 18:45:49 +00:00
Malcolm Tredinnick cf7a078774 Added a related name to the ForeignKey in the abstract base class of the
comment models. You'll never need to use this name, but it will lead to invalid
models if not present.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 17:56:22 +00:00
Jacob Kaplan-Moss e545058ba9 Fixed #8354: the MySQL backend no longer raises a cryptic error. Instead, it raises a less-cryptic error. Obiously this isn't a perfect solution by any means, but it'll do until we can revisit timezone handling in the future.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8802 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 17:48:39 +00:00
Jacob Kaplan-Moss a3196dac48 Make sure to use force_unicode when looking up comment objects by `object_pk`. Fixes #8762, and one other bug that nobody's reported yet.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8800 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 17:23:09 +00:00
Marc Fargas 3686fc189a Closes #8731, Typo in "fr" locale. Thanks Sephi & Julien.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8798 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 13:28:22 +00:00
Marc Fargas 587d3d7f79 Closes #8755, Updated Turkish translation. Thanks Metin Amiroff.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8797 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 13:23:10 +00:00
Marc Fargas 733765a062 Closes #8745, Updated Czech translation. Thanks Petr Marhoun.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8796 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 13:21:15 +00:00
Marc Fargas 36ece38c07 Closes #8751, Updated Simplified Chinese translation. Thanks Liang Feng.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8795 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 13:15:14 +00:00
Russell Keith-Magee f55b834c2f Fixed #7302: Corrected quoting of columns in extra_group_by. Thanks to Ivan Sagalaev for the patch and initial test.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8794 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 12:07:26 +00:00
Marc Fargas 7b70bf9ea6 Closes #8743, Typo in Brazilian translation. Thanks Guilherme M. Gondim.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 09:40:57 +00:00
Marc Fargas c176cf71ba Closes #8750. Updated Dutch translation. Thanks Rudolph Froger
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 09:38:02 +00:00
Jannis Leidel 94da2b8118 Updated German translation
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 07:52:17 +00:00
Ludvig Ericson e3525b19aa Updated Swedish translations added in r8679.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 06:12:51 +00:00
Nicola Larosa 84e0264fee Fixes #8736 - Italian translation. We're hopefully through with
rearranging the chairs on Titanic's deck... ;-)


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8784 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 05:21:43 +00:00
Malcolm Tredinnick 2d7feda05c Fixed #7512 -- Fixed an oversight when I first fixed ordering on nullable
foreign keys (r7761). Thanks to George Vilches for the test case here.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8783 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 02:43:55 +00:00
Malcolm Tredinnick 4480645ac3 Fixed #8316 -- Put tighter restrictions on the type of Foreign Key fields
created for MySQL (because MySQL + InnoDB has those restrictions).
Patch from julianb.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 00:49:03 +00:00
Malcolm Tredinnick 032d654967 Fixed #8709 -- Updated Slovakian translation from Frantisek Malina.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8781 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-01 00:13:42 +00:00
Malcolm Tredinnick 8c2d788a68 Fixed #8043 -- updated Brazilian Portugese translation from Guilherme Mesquita Gondim.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8780 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 23:59:36 +00:00
Malcolm Tredinnick 97ba591d87 Fixed #4624 -- Updated Persian translation from Reza Mohammadi.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8779 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 23:53:58 +00:00
Aljosa Mohorovic 653d21aa6e updated croatian translation, still not complete
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8778 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 23:27:34 +00:00
Malcolm Tredinnick 7838493b9e Fixed #8726 -- When doing reverse URL resolving, make sure we're consistently
dealing with unicode strings throughout by promoting up from UTF-8 as necessary.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8777 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 22:47:25 +00:00
Brian Rosner ab13303ea4 Fixed #8433 -- Deal with the add user popup on models that foreign key to User correctly. Thanks sorl for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8776 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 21:24:33 +00:00
Brian Rosner d511996901 Enforce max_num=1 on inline model formsets that have a unique foreign key to its parent. I snuck in a quick clean up to the inlineformset_factory as well.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8775 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 21:14:46 +00:00
Jacob Kaplan-Moss 4f5b0a321d Fixed #8194 (again): correctly focus on the first declared field in the admin. Thanks to fredbartle for catching my silly mistake the first time 'round.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 20:30:55 +00:00
Jacob Kaplan-Moss 8b11341a9a Fixed `ModelAdmin.radio_fields` to work with the new `TypedChoiceField`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 20:11:28 +00:00
Jacob Kaplan-Moss 3b63953704 Fixed #6967: `ModelForm`s now validate choices. Thanks, mattmcc -- the failing test helped quite a bit.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8772 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 20:11:11 +00:00
Jacob Kaplan-Moss 4ae746b574 Added a `TypedChoiceField` which acts just like `ChoiceField`, except that it
returns a value coerced by some provided function. Refs #6967.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8771 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 20:10:50 +00:00
Marc Fargas 3e71a684b3 Updated Estonian translation. Thanks Erik Allik.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8770 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 19:43:49 +00:00
Jacob Kaplan-Moss 86316f0be6 Fixed #7027: template tags now corectly break tokens around strings marked for translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8769 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 18:28:06 +00:00
Malcolm Tredinnick 79968f9867 Fixed #8703 -- Allow deeply nested import paths for DJANGO_SETTINGS_MODULE when
running django-admin.py. Also adds a parameter to setup_environ() for others to
use as well.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8768 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 18:21:06 +00:00
Nicola Larosa 8f56d6d017 Fixes #8703 - Italian translation: updated django.mo, just for
completeness, no string changes.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8767 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 17:38:54 +00:00
Marc Garcia ec525e3719 Catalan translation updated, specially date formats. It should be ready for Django 1.0
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8765 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 17:27:12 +00:00
Brian Rosner d05ebdb649 Fixed #8058 -- Moved media for filter_vertical/filter_horizontal widget to the widget for use outside the admin. This also corrects RelatedFieldWidgetWrapper to expose the media of the wrapped widget. Thanks Erwin for the report and cgrady and ramikassab for the complete patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8764 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 17:20:43 +00:00
Malcolm Tredinnick e1ea7014ad Fixed #8725 -- Handle empty URL patterns in reverse().
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 17:20:40 +00:00
Brian Rosner 30c7ce90c5 Fixed #8631 -- Corrected a display issue with the popup submit_row where the Save button would overflow. Thanks btaylordesign for report and initial patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8762 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 17:13:29 +00:00
Malcolm Tredinnick 24bacb19de Fixed #5216 -- Fixed a case of a string not being a unicode string.
Thanks to Vadim Fint for the test case.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8761 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 11:39:06 +00:00
Malcolm Tredinnick a63a83e5d8 A rewrite of the reverse URL parsing: the reverse() call and the "url" template tag.
This is fully backwards compatible, but it fixes a bunch of little bugs. Thanks
to SmileyChris and Ilya Semenov for some early patches in this area that were
incorporated into this change.

Fixed #2977, #4915, #6934, #7206.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 11:11:20 +00:00
Brian Rosner 27f9b96fa0 Fixed handling of primary keys in model formsets. Model formsets should now work nicely with custom primary keys that are OneToOneField, ForeignKey and AutoField. Added tests to handle each of them.
Fixes #8241, #8694, #8695 and #8719.

Thanks Karen Tracey, jonloyens, sciyoshi, semenov and magneto for tracking down various parts of this patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31 09:49:55 +00:00
Ramiro Morales a40a32e52a Updated Argentinian spanish translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8752 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 22:24:24 +00:00
Jacob Kaplan-Moss ae72e25b35 Fixed #8716: correctly handle name and email in comments from authenticated users.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8751 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 21:30:02 +00:00
Jacob Kaplan-Moss eebc7caa63 Fixed #8616 (again): prevent a race condition in the session file backend. Many thanks to Warren Smith for help and the eventual fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8750 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 20:50:41 +00:00
Malcolm Tredinnick 1729d92f71 Fixed #8702 -- Set up the initial locale correctly for the development server.
Previously, "--noreload" wasn't picking up the default language setting. Thanks
to arien and Karen Tracey for debugging this.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8749 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 20:17:58 +00:00
Jacob Kaplan-Moss 15644cb255 Fixed #8622: accessing POST after a POST handling exception no longer throws the server into an infinite loop. Thanks to vung for tracking this one down and fixing it.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8748 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 19:56:14 +00:00
Jacob Kaplan-Moss f2d7ee759a Fixed #8710: removed a few stray tabs. Thanks, gkelly.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 19:25:40 +00:00
Jarek Zgoda ddaa3016e2 Last missing string translated in Polish locale.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 19:10:07 +00:00
Malcolm Tredinnick 395cd3b42c Accidentally committed a rebase of the Macedonian messages in [8742] (this
wasn't a translation update). Undoing that. My fault entirely.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 17:54:58 +00:00
Malcolm Tredinnick a90320032e Fixed #8715 -- Updated Finnish translation from Ville Säävuori.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 17:52:31 +00:00
Malcolm Tredinnick b08ee75dc1 Fixed #8708 -- Updated Arabic translation from Ossama M. Khayat.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8742 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 17:52:11 +00:00
Malcolm Tredinnick e47f5731be Fixed #8707 -- Updated Macedonian translation from Georgi Stanojevski.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8741 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 17:51:48 +00:00
Malcolm Tredinnick fd0cc45828 [8721] introduced some internal field names. We hide them from the list of
valid field names in debugging output so that it doesn't confuse things.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8730 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 04:52:56 +00:00
Malcolm Tredinnick c60e22c073 Fixed #8699 -- Updated Hungarian translation from Szilveszter Farkas.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8729 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30 03:12:58 +00:00
Malcolm Tredinnick cc971910a9 Changed [8727] to use ImportError, which seems to actually work. Not sure what
I was smoking when I tested this 10 minutes ago. Refs #8680. Thanks to gkelly
for cleaning up after me.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 23:03:12 +00:00
Malcolm Tredinnick 4184d6348e Fixed #8680 -- Changed a couple of GEOExceptions to Python's RuntimeError so
that help() works. Without this change, even if you didn't use the gis stuff,
just using Python 2.5's help() system would crash when searching for model
names.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8727 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 22:51:01 +00:00
Malcolm Tredinnick b2dd9c6fa1 Fixed a few of the msgid (untranslated strings) encodings in the French
translation. Not sure why they weren't properly UTF-8 encoded originally.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8726 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 22:37:22 +00:00
Malcolm Tredinnick fb041b1620 Another French update from David Larlet. Fixed #8661.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8725 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 22:34:05 +00:00
Malcolm Tredinnick 51836756d0 Fixed a typo from the refactoring in [8455]. With bonus test, too. Thanks, vung.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8724 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 22:29:38 +00:00
Malcolm Tredinnick 38362a1276 Fixed a missing piece of [8721].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8723 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 21:48:40 +00:00
Malcolm Tredinnick f3e088d2d9 Fixed #8697 -- Updated Norwegian translation from Jon Lønne.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8722 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 21:41:50 +00:00
Malcolm Tredinnick f04123f4df Fixed #8279 -- Multiple many-to-many relations to "self" are now possible.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 21:24:00 +00:00
Jacob Kaplan-Moss ae953a8c4e Fixed #8673: fixed a missing import in `django.core.files.move`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8720 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 20:00:55 +00:00
Brian Rosner 5c31c68560 Properly reference FieldDoesNotExist as it does not exist in global of django/contrib/admin/options.py.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 19:50:22 +00:00
Jacob Kaplan-Moss 21adbd6738 Fixed #7466: do a better job figuring out links from the admin docs into the rest of the admin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8718 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 19:29:16 +00:00
Jacob Kaplan-Moss 0871ff2c9c Fixed #7810: added named URLs for admin docs, and use them in the admin base template. Thanks, MattBowen.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 19:28:53 +00:00
Jacob Kaplan-Moss c068bc184c Merge branch 'url-tag-asvar'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 19:28:03 +00:00
Jacob Kaplan-Moss 2ca8cf3628 Fixed #8653: make formtools' security hash more rubust. Silly that I didn't think of this before; thanks to bthomas for providing the obvious fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 19:15:34 +00:00
Malcolm Tredinnick 71076ae299 Fixed some edge-case error handling from [8699]. Thanks, gkelly.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 18:12:31 +00:00
Malcolm Tredinnick ef7f61a35e Fixed #8541 -- An attempt at translating the technical messages IDs for zh_CN from garcia_marc.
This fixes the obvious problem, but a full translation update is needed from a
Chinese speaker here.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 18:09:10 +00:00
Malcolm Tredinnick f2fd577bd5 Fixed #8689 -- Updated Russian translation from Grigory Fateyev.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 17:49:22 +00:00
Malcolm Tredinnick 8f0bdb1468 Fixed #8685 -- Updated Portugese translation from Nuno Mariz.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8711 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 17:49:05 +00:00
Malcolm Tredinnick 0e9ba0af36 Updated French translation from David Larlet and Julien Phalip.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 17:48:28 +00:00
Brian Rosner d57d490b76 Fixed #7918 -- Allow the foreign key in an inline to be any where in the parent chain. Thanks sil for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8708 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 17:41:40 +00:00
Malcolm Tredinnick 3717e3bba3 Reverted #8688 for now, since it merely introduced different bugs, rather than
fixing the problem. We have a plan B (and plan C, if needed), so this will be
fixed in a different way.

Refs #8616.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 17:32:21 +00:00
Jacob Kaplan-Moss 6a8dcafb57 Fixed #8278: fixed `QueryDict.update(QueryDict)`. Thanks, julien.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 16:49:19 +00:00
Brian Rosner cd0b65bcf7 Fixed #7982 -- Corrected ModelAdmin url dispatching to ensure it matching exactly what it needs and doesn't stomp on primary key space. 'add' is a lost cause for now. This originated from #6470. Thanks jdetaeye for the original patch and basith for providing test cases.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 16:46:46 +00:00
Nicola Larosa 8cfecbd748 Italian translation, again: darned KBabel...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 16:31:00 +00:00
Nicola Larosa d95466b7a0 Italian translation updated (apparently, even string freezes are subject
to global warming, lately...)


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8701 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 16:28:52 +00:00
Jacob Kaplan-Moss 15416a9016 Fixed #7881: Support `__in` lookups in `limit_choices_to` and `raw_id_admin`. Thanks, jamesturk.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8700 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 16:13:17 +00:00
Jacob Kaplan-Moss 21928f2ba0 Fixed #7738: support initial values via `GET` for `SelectMutliple` in the admin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8699 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 16:09:29 +00:00
Brian Rosner 89ccbabbfc When a form in the admin has no fields prevent failure.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8698 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 16:07:19 +00:00
Jacob Kaplan-Moss b5da9e8b2d Fixed #8687, a bad variable name in validation. Thanks, vung.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 15:45:23 +00:00
Jarek Zgoda 7f055554e0 Fixed #8665 - Polish translations update. Thanks, Piotr Lewandowski.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8696 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 06:53:02 +00:00
Malcolm Tredinnick e66b0ae576 Updated Japanese translation from Takashi Matsuo.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8693 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 04:30:19 +00:00
Malcolm Tredinnick 90279aeaf0 Fixed #8575 -- Catch one particular instance of OperationalError in MySQL and
convert it to an IntegrityError, which seems like the more natural case (and is
consistent with other backends). This makes exception handling in Django much
easier.

The solution is extensible for any other error codes we may wish to add going
forwards.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8692 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 04:30:07 +00:00
Malcolm Tredinnick 54f41e3507 Fixed #8101 -- Allow the strings '1' and '0' as filter values for boolean
fields (the latter was causing problems). This allows these values in URLs
(e.g. the admin filtering).

Not an ideal solution to the problem, but will do the job for the time being.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8691 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 02:40:56 +00:00
Malcolm Tredinnick a1d2f6ef0c Fixed #7823 -- Fixed an edge case in RelatedField.get_db_prep_lookup() so that
it works correctly with custom field subclasses. Patch from Ivan Sagalaev.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8690 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 02:40:50 +00:00
Malcolm Tredinnick 02f86a1c7c Fixed #8616 -- Fixed a race condition in the file-based session backend.
Thanks to warren@wandrsmith.net for the patch.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8688 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29 01:44:11 +00:00
Marc Fargas 6e841ca767 Updated catalan translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8687 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 22:59:23 +00:00
Marc Fargas e3b178ede3 Updated Spanish translation.
The Last-Translator and Language-Team fields have been shortened to avoid
further wrapping by gettext.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8686 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 22:58:19 +00:00
Jacob Kaplan-Moss fc2978cc45 Fixed a bug in `NullBooleanField.to_python`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8684 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 21:23:21 +00:00
Jannis Leidel 8d8236385f Updated German translation, yay.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8683 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 21:02:05 +00:00
Jacob Kaplan-Moss a41ca9c9e2 Fixed #8556: added a useful formfield to `CommaSeparatedIntegerField`. gkelly, mattmcc, and kratorius all contributed portions of this patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 20:58:10 +00:00
Jacob Kaplan-Moss fe8e00ae06 Fixed #8194: `AdminForm.first_field` now correctly returns the first field when using custom field orders.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8681 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 20:48:59 +00:00
Jacob Kaplan-Moss 503fda43fa Fixed #8654: added `ugettext_lazy` to `django.utils.translation.__all__`.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8680 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 20:20:40 +00:00
Jacob Kaplan-Moss 0c66bac4f3 Marked a handful of missed strings for translation. Fixes #8644, #8617, and #8610.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8679 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 20:17:31 +00:00
Ludvig Ericson 9348c118da Updated all Swedish translations.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8678 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 19:54:43 +00:00
Jacob Kaplan-Moss 7b65302567 Fixed #8608: corrected doc link in comment 400 error page.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8677 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 19:46:33 +00:00
Jacob Kaplan-Moss 9f59fc5560 Fixed #8651: correctly deserialize objects with 0 for pk/fk.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8676 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 19:38:56 +00:00
Malcolm Tredinnick 195420259a Fixed #8403 -- Changed the use of fcntl.flock() to fcntl.lockf(). On some
systems, this will ensure fnctl-based file locking is always used, which means
locking of NFS-mounted files should work.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 19:28:45 +00:00
Malcolm Tredinnick f96b1249ce Removed a couple of unused imports.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8674 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 19:28:31 +00:00
Malcolm Tredinnick 65c0846c45 Updated a few save() methods on models to accept force_insert and force_update
parameters. Required as a consequence of [8670] (so they can be used with
create()).


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8673 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 19:28:17 +00:00
Jacob Kaplan-Moss a46d3ebfcc Fixed #8221: added some better `NoReverseMatch` error strings. Thanks, mrts.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8672 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 19:05:14 +00:00
Malcolm Tredinnick 10244d1c04 Fixed #8645 -- Updated Dutch translation from Rudolph Froger.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8671 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 17:26:16 +00:00
Malcolm Tredinnick c181734fa1 Changed create() and get_or_create() to force an insert (not update an existing value).
Backwards incompatible if you are using manually-specific primary key values
and relying on the previously documented behaviour that the new values would
always exist in the database (i.e. it would update the existing entry).

Fixed #8419.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8670 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 17:18:05 +00:00
Jacob Kaplan-Moss 82179ccbbb Fixed #8637: fixed timeuntil and date values.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8668 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 16:31:50 +00:00
Jacob Kaplan-Moss fc6649092a Fixed an inconsistancy in redirects with `META['SERVER_PORT']` being either a string or an int.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8666 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 16:18:32 +00:00
Malcolm Tredinnick fc1fbf614f Removed a comment from the top of the Hungarian translation to avoid any
potential confusion.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8665 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 16:15:44 +00:00
Jacob Kaplan-Moss 3d577febc7 Fixed #7524: allow errors raised during import of a urlconf to bubble up.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8664 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 16:14:13 +00:00
Jacob Kaplan-Moss 1a40498da4 FIxed #8613: removed vestigal `FileField.save_file()`. Thanks, kratorius.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8663 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 16:05:09 +00:00
Jacob Kaplan-Moss b31568aed3 Fixed #8027: correctly validate fields/fieldsets in `ModelAdmin` validation when using custom `ModelForm`s.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8662 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 15:43:04 +00:00
Jacob Kaplan-Moss b99cc935eb Fixed #7753: clean `NullBooleanField` correctly when using `HiddenInput`. Thanks to julien and ElliottM.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8661 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 15:06:18 +00:00
Marc Fargas 938f7ea913 Updated Macedonian translation, thanks Georgi Stanojevski
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 13:57:37 +00:00
Russell Keith-Magee 229f2c1ca0 Fixed #8636: Corrected the test client to use the string '80' in the request META, rather than the integer 80. Thanks to Adam Lofts for the report and fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8655 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 11:52:50 +00:00
Marc Fargas a0dd9ecdd8 Fixed #8624, Updated Hungarian translation, Thanks Szilveszter Farkas.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8649 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 07:18:28 +00:00
Malcolm Tredinnick 21672c26bf Fixed #8592 -- Fixed a bug in the way savepoint usage was disabled for
PostgreSQL < 8.0.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8648 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 06:49:00 +00:00
Nicola Larosa 59607bb1c1 Italian translation: no real string changes, just run makemessages again
to shorten long lines (compilemessages too, for completeness)


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8647 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 06:00:08 +00:00
Malcolm Tredinnick 71dda19184 Fixed #8597 -- Allow the use of strings containing underscores and percentage
signs in "iexact" queries on PostgreSQL again (this case was missed in [8536]).


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8646 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 05:42:05 +00:00
Malcolm Tredinnick f749b84824 Fixed #8625 -- Updated Hebrew translation from Meir Kriheli.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8645 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 05:16:48 +00:00
Malcolm Tredinnick 4cd03ef5d9 Improvements to [8608] to fix an infinite loop (for exclude(generic_relation)).
Also comes with approximately 67% less stupidity in the table joins for
filtering on generic relations.

Fixed #5937, hopefully for good, this time.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28 05:00:23 +00:00
Jacob Kaplan-Moss 1abfb1df19 Fixed #8276: corrected another couple of names in localflavor.pl.forms. Patch by Piotr Lewandowski.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8643 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 23:05:25 +00:00
Jacob Kaplan-Moss 08024e9503 Fixed #8601: a small typo in comment views.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8642 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 22:55:10 +00:00
Jacob Kaplan-Moss 1106c558b1 Fixed #8544: correctly cast `Comment.object_pk` to string when doing lookups. This really only papers over a bigger problem related to casting the RHS of GFKs, but that larger change can wait for a more systematic fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8641 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 22:51:24 +00:00
Jacob Kaplan-Moss ff420b4364 Fixed #8454: added a FILE_UPLOAD_PERMISSIONS setting to control the permissoin of files uploaded by the built-in file storage system. Thanks, dcwatson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 22:21:14 +00:00
Jacob Kaplan-Moss f58217cc02 Fixed #8455: a lack of permissions in `MEDIA_ROOT` no longer causes an infinite loop when saving files. Thanks, carljm.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8639 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 21:44:14 +00:00
Jacob Kaplan-Moss 52672f2b94 Fixed #8534: getting the size of a file no longer opens it (at least for the built-in file-system storage). Thanks, snaury.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8638 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 21:30:47 +00:00
Jacob Kaplan-Moss 8943a857a7 Fixed #8175: don't open files we're about to close. This was a pesky bug to track down; thanks to charmless for tracking it down.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8637 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 21:18:45 +00:00
Jacob Kaplan-Moss c33aeaa082 FIxed #8156: `UploadedFile.__repr__` now returns a string, a good `__repr__` should.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 20:53:02 +00:00
Jacob Kaplan-Moss 40e5cde1c5 Fixed #7379: fixed a subtle corner case involving URL encoding in `CommonMiddleware`
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8635 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 20:29:58 +00:00
Jacob Kaplan-Moss 615ed20006 Fixed #7769: Added a couple missing file methods to `TemporaryUploadedFile`. Thanks, Mads Sülau Jørgensen.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 20:29:45 +00:00
Jacob Kaplan-Moss 887f778794 Fixed #8287: the debug page now shows the actual requested URL even if you've messed with request.path. Patch from Giuliani Vito Ivan.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8633 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 19:59:29 +00:00
Brian Rosner d441a758de Corrected a couple of typos in docstrings of methods in BaseFormSet.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8630 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 15:39:00 +00:00
Marc Fargas 4848d4cbe6 Typo in spanish .po file
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8629 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 13:41:34 +00:00
Marc Fargas 453e9ae4ac Updated Spanish translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8628 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 13:38:04 +00:00
Marc Fargas 35f4bdc7a0 Catalan translation up-to-date
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8627 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 13:15:28 +00:00
Russell Keith-Magee c91cdbddcb Bumped version number for 1.0 Beta 2 release.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8625 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 12:18:02 +00:00
Malcolm Tredinnick ee28560997 Fixed #8311 -- Avoid an infinite loop with session key generation when using
the cache backend and memcached goes away (or is not running).


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 08:58:51 +00:00
Nicola Larosa b80db03ca7 Italian translation updated, a few strings improved.
Thanks to Nicola Murino for the original patch.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 08:51:35 +00:00
Malcolm Tredinnick 7e9a22aae7 Fixed #7289 -- Made ModelForms behave like Forms in the sense that Field
objects don't appear as attributes on the final form instance. They continue to
appear as elements of the form_instance.fields mapping.

If you were relying on ModelForms having fields as attributes, then this will
be slightly backwards incompatible. However, normal template usage will see no
change at all.

Patch from Daniel Pope.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8618 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 08:05:59 +00:00
Malcolm Tredinnick ec8848dad5 Fixed #8589 -- Fixed the URL for the logout link on the app_index page in admin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8617 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 07:27:09 +00:00
Gary Wilson Jr c2ba59fc1d Removed oldforms, validators, and related code:
* Removed `Manipulator`, `AutomaticManipulator`, and related classes.
 * Removed oldforms specific bits from model fields:
   * Removed `validator_list` and `core` arguments from constructors.
   * Removed the methods:
     * `get_manipulator_field_names`
     * `get_manipulator_field_objs`
     * `get_manipulator_fields`
     * `get_manipulator_new_data`
     * `prepare_field_objs_and_params`
     * `get_follow`
   * Renamed `flatten_data` method to `value_to_string` for better alignment with its use by the serialization framework, which was the only remaining code using `flatten_data`.
 * Removed oldforms methods from `django.db.models.Options` class: `get_followed_related_objects`, `get_data_holders`, `get_follow`, and `has_field_type`.
 * Removed oldforms-admin specific options from `django.db.models.fields.related` classes: `num_in_admin`, `min_num_in_admin`, `max_num_in_admin`, `num_extra_on_change`, and `edit_inline`.
 * Serialization framework
   * `Serializer.get_string_value` now calls the model fields' renamed `value_to_string` methods.
   * Removed a special-casing of `models.DateTimeField` in `core.serializers.base.Serializer.get_string_value` that's handled by `django.db.models.fields.DateTimeField.value_to_string`.
 * Removed `django.core.validators`:
   * Moved `ValidationError` exception to `django.core.exceptions`.
   * For the couple places that were using validators, brought over the necessary code to maintain the same functionality.
 * Introduced a SlugField form field for validation and to compliment the SlugField model field (refs #8040).
 * Removed an oldforms-style model creation hack (refs #2160).

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8616 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 07:19:44 +00:00
Jarek Zgoda a157576660 Updated Polish translation to match new comments system
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 07:16:57 +00:00
Malcolm Tredinnick c305471610 Fixed get_absolute_url() for comments. Previously, it relied on "view on site"
for admin being reversible or required people to set up their own version. Now
we ship a default pattern in the comments URLs in a way that is unlikely to
clash with anything else.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8614 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 07:04:58 +00:00
Malcolm Tredinnick 157dbe2fff Fixed #8552 -- Use the LOGIN_REDIRECT_URL setting in the auth tests, rather than hard-coding the value.
This enables things to work properly when installed in other configurations.
Patch from aeby.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 06:02:13 +00:00
Malcolm Tredinnick d70c8907cd Fixed #5937 -- When filtering on generic relations, restrict the target objects to those with the right content type.
This isn't a complete solution to this class of problem, but it will do for
1.0, which only has generic relations as a multicolumn type. A more general
multicolumn solution will be available after that release.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8608 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 05:22:33 +00:00
Malcolm Tredinnick 6e51f05112 Fixed #8577 -- Fixed a couple of indentation errors when viewing the app-index
page in admin. Patch by evenrik.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8607 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27 05:22:25 +00:00