Russell Keith-Magee
e18fccc62e
Corrected a bug in [7876] picked up by the buildbot: depending on the order in which tests are run, some tests would fail because of a dependency on the current working directory.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-10 13:53:45 +00:00
Russell Keith-Magee
9376d4ed5b
Refs #5943 , #6107 -- Added framework and tests to check for the correct operation of django-admin and manage.py. Thanks for Simon Willison and Karen Tracey for their contributions and assistance testing this patch.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-10 12:12:41 +00:00
Gary Wilson Jr
96a47da015
Fixed a couple typos as well as several minor style issues.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08 21:53:38 +00:00
Malcolm Tredinnick
409ed9468f
Fixed #7670 -- Fixed a couple of missed changes from [7865]. Patch from jshaffer.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7869 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08 05:29:23 +00:00
Malcolm Tredinnick
a616b92174
Fixed test suite after [7687].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7868 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08 05:28:37 +00:00
Adrian Holovaty
a724fff300
Fixed #7307 -- Split InvalidPage exception into two subclasses, PageNotAnInteger and EmptyPage, for granular exception catching. Thanks for the idea, miracle2k
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7867 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08 02:20:48 +00:00
Adrian Holovaty
cb70c99537
Fixed #7569 -- Improved a link in docs/generic_views.txt to link to the new pagination docs. Thanks, Carl Karsten
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7866 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08 02:11:09 +00:00
Adrian Holovaty
4406d283e1
Fixed #7478 -- Rolled QuerySetPaginator into the Paginator class, to simplify things. QuerySetPaginator still exists as an alias, for backwards compatibility. Thanks for the suggestion, batiste@dosimple.ch
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7865 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08 02:08:33 +00:00
Adrian Holovaty
f19284b85a
Fixed #7655 -- Added two assertions to mail.py to help people debug a common problem (sending strings instead of lists/tuples for 'to' or 'bcc'). Thanks, guettli
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7864 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08 01:56:01 +00:00
Adrian Holovaty
b0d380376c
Fixed #7649 -- Fixed incorrect line numbering in debug view in case of empty spaces. Thanks, dusk
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7863 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-08 01:49:50 +00:00
Jacob Kaplan-Moss
33666ef829
Fixed #7638 , a small typo in uploading files docs. Thanks, Horst Gutmann.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-07 23:36:53 +00:00
Jacob Kaplan-Moss
f804e7f038
Fixed deprecated UploadedFile.data attribute. Refs #7614 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7861 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-07 23:36:45 +00:00
Jacob Kaplan-Moss
c83e9abb34
Added a missing deprecated property (UploadedFile.filename) from [7859]. Refs #7614 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7860 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-07 23:36:35 +00:00
Jacob Kaplan-Moss
a28b75b0ba
Fixed #7614 : the quickening has come, and there now is only one UploadedFile. On top of that, UploadedFile's interface has been improved:
...
* The API now more closely matches a proper file API. This unfortunately means a few backwards-incompatible renamings; see BackwardsIncompatibleChanges. This refs #7593 .
* While we were at it, renamed chunk() to chunks() to clarify that it's an iterator.
* Temporary uploaded files now property use the tempfile library behind the scenes which should ensure better cleanup of tempfiles (refs #7593 again).
Thanks to Mike Axiak for the bulk of this patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7859 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-07 23:16:00 +00:00
Jacob Kaplan-Moss
9dabd1f8ff
Fixed #7651 : uploading multiple files with the same name now work. Also, in order to test the problem the test client now handles uploading multiple files at once. Patch from Mike Axiak.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7858 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-07 22:06:32 +00:00
Malcolm Tredinnick
72544950e1
Fixed #7163 -- Fixed a translation-sharing problem so that you can have en-gb
...
and en-us at the app-level, even though Django only has an "en" translation
(for example). Analysis and patch from ognjen.maric@gmail.com .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7857 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-07 01:57:05 +00:00
Malcolm Tredinnick
8975bba742
Fixed #4148 -- Changed the way attachments are served to IE to avoid some
...
caching and header-related bugs there. Only comes into play when Internet
Explorer is the user-agent.
Patch from Michael Axiak, with testing from Axis_of_Entropy and Karen Tracey.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-07 01:45:19 +00:00
Malcolm Tredinnick
6048389391
Fixed #7532 -- Removed some dead code from the db backends. Thanks, Ramiro.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7852 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 14:26:37 +00:00
Malcolm Tredinnick
5deb4fcbb9
Revert [7849] and [7850]. Brain failure on my part.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 14:20:30 +00:00
Malcolm Tredinnick
c2f753a8ba
Started to work on the regex reverse-engineering phase.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7850 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 14:17:07 +00:00
Malcolm Tredinnick
c88e55b4fe
Some tests for the new features. These pretty much fail at the moment. Based on
...
SmileyChris's original work.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7849 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 14:16:43 +00:00
Malcolm Tredinnick
25f2cfb7cb
Fixed #7643 -- Fixed an oversight from [7844].
...
Now makemessages works in projects again. Based on a patch from Horst Gutmann.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 12:55:24 +00:00
Malcolm Tredinnick
075098f9fd
Changed ModelFormMetaclass to have the normal signature for a __new__ method.
...
Allows extending the metaclass more normally.
Patch from Christian Tanzer. Refs #7617 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 12:29:40 +00:00
Malcolm Tredinnick
0d0cbfd56e
Fixed #7621 -- Enable superclassing of the various metaclasses we use.
...
Also tidy up some initialisation code in django.db.models.base.ModelBase.
Thanks, Christian Tanzer.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7846 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 11:55:30 +00:00
Malcolm Tredinnick
e2740dd400
Fixed #7630 -- Slight tweak to the custom form widget exampleto avoid any
...
confusion. Based on a patch from Christian Tanzer.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 11:00:58 +00:00
Malcolm Tredinnick
3cfa3cbd07
Fixed #5522 -- Moved make-messages, compile-messages and daily-cleanup into django-admin.py.
...
They are now called "makemessages", "compilemessages" and "cleanup". This is
backwards incompatible for make-messages.py and compile-messages.py, although
the old executables still exist for now and print an error pointing the caller
to the right command to call.
This reduces the number of binaries and man pages Django needs to install.
Patch from Janis Leidel.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 06:39:44 +00:00
Malcolm Tredinnick
bff075973a
Fixed #7072 -- More logical and robust language settings in the i18n context processor.
...
Analysis and patch from akaihola.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7843 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 05:25:55 +00:00
Malcolm Tredinnick
c71686489b
Fixed #7061 -- Fixed a small inaccuracy in the i18n docs. Thanks akaihola.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7842 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06 04:08:13 +00:00
Malcolm Tredinnick
31b61d57d5
Fixed #7626 -- Fixed a typo in the newforms docs.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7838 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-05 02:34:37 +00:00
Malcolm Tredinnick
58a68723b3
Changed a couple of old-style validators to remove some deprecation warnings
...
when using ImageFields, etc, in the admin interface. Cosmetic only. Refs #7608 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7837 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-05 02:14:34 +00:00
Malcolm Tredinnick
6dd2b5468f
Redo the changes in [7773] in a better way.
...
This removes some of the leaky abstraction problems (lifting WhereNode
internals into the Query class) from that commit and makes it possible for
extensions to WhereNode to have access to the field instances. It's also
backwards-compatible with pre-[7773] code, which is also better.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-04 06:42:58 +00:00
Ian Kelly
3b6487130a
Fixed #7407 -- in Oracle, made sure table names are properly quoted when resetting sequences. Thanks, erny.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-03 19:21:54 +00:00
Ian Kelly
0650bab492
Fixed a test case using extra sql that didnt fit Oracle syntax.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-03 19:02:43 +00:00
Ian Kelly
ee837ad46a
Refs #7565 . Fixed Oracle sequence resetting on child models.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7831 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-03 18:42:47 +00:00
Gary Wilson Jr
1bfe994409
Corrected typo in `uploadedfile` module.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-03 06:04:17 +00:00
Marc Fargas
aa63190d0b
Closes #7607 , Turkish translation update, thanks Evren Esat Özkan
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7828 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-02 21:39:05 +00:00
Jacob Kaplan-Moss
45404bea18
Fixed a few typos in upload handling docs
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7827 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-02 20:34:29 +00:00
Ian Kelly
f7903f7479
Renamed a field in a test case that was preventing the tests from
...
running in Oracle.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-02 16:59:17 +00:00
Gary Wilson Jr
56e1cdc8bc
Fixed a long and complex line by breaking into a for loop, with the added benefit that the method will now exit as soon as a matching
...
permission is found instead of checking all of the user's permissions and putting them into a temporary list.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7823 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-02 05:05:50 +00:00
Gary Wilson Jr
73dfef8771
Added docstring and other minor style fixes.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7822 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-02 05:00:09 +00:00
Gary Wilson Jr
f5c1bb1cad
Got rid of a bit of repetition by using `dict.update()`.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7821 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-02 04:48:58 +00:00
Gary Wilson Jr
7e210f68a9
Minor style fixes.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-02 04:34:05 +00:00
Gary Wilson Jr
54d50ef5c8
Made legacy `ObjectPaginator` truly backwards-compatible by catching both `AttributeError` and `TypeError` in `_get_count` as it did before
...
[7306]. Tests included.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7819 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-02 04:31:28 +00:00
Jacob Kaplan-Moss
bcb1c6dc71
Oops, missed a changed file in [7817].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7818 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-01 18:49:01 +00:00
Jacob Kaplan-Moss
9fc4c0aaa4
Fixed #7590 : made UploadedFile subclasses' __init__ methods sane.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7817 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-01 18:47:46 +00:00
James Bennett
b0a38160ca
Fix a small typo in docs/upload_handling.txt
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7816 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-01 16:37:28 +00:00
Jacob Kaplan-Moss
d725cc9734
Fixed #2070 : refactored Django's file upload capabilities.
...
A description of the new features can be found in the new [http://www.djangoproject.com/documentation/upload_handing/ upload handling documentation]; the executive summary is that Django will now happily handle uploads of large files without issues.
This changes the representation of uploaded files from dictionaries to bona fide objects; see BackwardsIncompatibleChanges for details.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-01 15:10:51 +00:00
Malcolm Tredinnick
ef76102e89
Fixed #7185 -- Added a "ping_google" management command to
...
django.contrib.sitemaps. Thanks, Pete Shinners.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7813 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-01 12:25:59 +00:00
Malcolm Tredinnick
4fd359253d
Modified [7760] to not include a "col is not NULL" fragment for non-nullable fields.
...
This avoids any use of "pk is not NULL" fragment, which behave inconsistently
in MySQL. Thanks to Russell Keith-Magee for diagnosing the problem and
suggesting the easy fix.
Refs #7076 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7812 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-01 10:12:50 +00:00
Malcolm Tredinnick
a75de3f342
Changed a documentation example that wasn't wrong to stop complaints.
...
Fixed #7544 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-01 02:17:24 +00:00