Commit Graph

6225 Commits

Author SHA1 Message Date
Brian Rosner 194de934ff [1.0.X] Corrected a typo in the 1.0 porting guide.
Backport of [9219] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9220 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-09 23:38:09 +00:00
Malcolm Tredinnick 94c210427f [1.0.X] Fixed #9239 -- Somebody read my form validation docs from r9180 and
found a typo in them. I guess that was predictable. Thanks, Berry Groenendijk

Backport of r9217 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9218 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-09 09:33:35 +00:00
Malcolm Tredinnick f0ba276fd6 [1.0.X] Fixed #9325 -- Typo fix in the forms documentation.
Backport of r9215 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-09 09:21:22 +00:00
Malcolm Tredinnick 5e9a9053d8 [1.0.X]Fixed #9328 -- Added Scot Hacker to AUTHORS and moved a couple of other
names to their alphabetical locations.

Backport of r9213 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9214 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-09 09:01:30 +00:00
Karen Tracey 9810648bef [1.0.X] Fixed #9053 -- Allowed for sorting of callable and ModelAdmin methods specified in list_display (added in r8352). Previously attempting to sort on the former would raise an exception and the latter simply didn't sort. Also added tests for this function. Thanks rgl and jenan.
Backport of [9211], also updated svnmerge.py metatdata.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9212 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08 14:57:34 +00:00
Karen Tracey aea426561a [1.0.X] Blocked new feature r9188 from consideration by svnmerge.py.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08 14:15:39 +00:00
Malcolm Tredinnick ced447ee97 [1.0.X] Fixed #9319 -- Fixed a crash when using the same model field in multiple
unique_together constraints.

Backport of r9208 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08 10:11:02 +00:00
Malcolm Tredinnick a9936d0b1c [1.0.X] A queryset that has had ordering removed (order_by()) can have ordering
added again later (order_by('foo')). Or, at least, it can now. Thanks to Ilya
Novoselov for diagnosing the problem here.

Backport of r9206 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08 09:48:21 +00:00
Malcolm Tredinnick 4b687d01ba [1.0.X] Fixed #6748 -- When printing the repr() of querysets, don't load or
display more than 20 objects.

This means that accidentally executing HugeStoryArchive.objects.all() at the
interactive prompt (or in the debug template) won't try to load all 4,233,010
stories into memory and print them out. That would previously cause resource
starvation and other "interesting" crashes.

If you really, really want the previous behaviour (e.g. in a doctest that
prints more than 20 items), display "list(qs)" instead of just "qs".

Backport of r9202 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08 08:44:17 +00:00
Malcolm Tredinnick 09d84c4d40 [1.0.X] Applying a limit to a queryset that already had an upper limit of 0
wasn't working properly.

Backport of r9201 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08 08:43:31 +00:00
Malcolm Tredinnick 318c1c32dd [1.0.X] The tests added in r9185 were altering the test environment in bad
ways. Fixed this with proper setUp() and tearDown() methods.

Backport of r9200 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-08 08:42:39 +00:00
Malcolm Tredinnick b3c2cf3d1d [1.0.X] Fixed #9233 -- Allow date and message-id headers to be passed in
manually in email messages. Previously we were creating duplicate headers,
which was bad.

Backport of r9197 from trunk. I'm calling this a bugfix, since the docs are
unclear about which headers you can pass into an EmailMessage constructor.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9198 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07 12:26:00 +00:00
Malcolm Tredinnick 742ff0800b [1.0.X] Fixed #9215 -- Added a view/template example of using pagination.
Based on a patch from shacker and Matt Dennenbaum.

Backport of r9193 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07 11:58:40 +00:00
Malcolm Tredinnick 4991aac216 [1.0.X] Added a link to the "documentation" documentation in the contributing docs.
Backport of r9192 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07 11:58:02 +00:00
Malcolm Tredinnick 8e1c848099 [1.0.X] Added a note about where custom manager specifications go in a model
(for the style guide).

Backport of r9191 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9194 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07 11:56:49 +00:00
Malcolm Tredinnick 3963a01697 [1.0.X] Fixed #9224 -- Prevent a crash when certain query strings are sent using
modpython.

Backport of r9189 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07 10:55:02 +00:00
Malcolm Tredinnick fb4f82f2ea Reverted r9186 -- Committed to the wrong branch (it's a feature addition).
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07 09:04:55 +00:00
Malcolm Tredinnick ed48b0b37e Fixed #5888 -- Added methods to the test client to support HEAD, PUT, DELETE
and OPTIONS support. Thanks Scott Barr and Leah Culver.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07 08:47:05 +00:00
Malcolm Tredinnick 66c77d03d2 [1.0.X] Fixed #9199 -- We were erroneously only prepending "www" to the domain
if we also needed to append a slash (when PREPEND_WWW=True).

Based on a patch and tests from gonz. Thanks.

Backport of r9184 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-07 08:26:31 +00:00
Karen Tracey 0604225387 [1.0.X] Update svnmerge.py metadata to reflect changesets that have been merged from trunk, which is all non-blocked ones to date.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 18:21:49 +00:00
Karen Tracey f98243375c [1.0.X] Set svnmerge.py metadata to block non-bugfix changesets from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 18:02:19 +00:00
Karen Tracey e75fe1a83f [1.0.X] Initialize svnmerge.py metadata for 1.0.X branch.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 17:49:42 +00:00
Malcolm Tredinnick e4b28a9b61 [1.0.X] Added a lot more explanation about form field validation, including
expanded examples. Fixed #5843, #6652, #7428.

Backport of r9177 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 11:28:39 +00:00
Malcolm Tredinnick 6a30f5a2ea [1.0.X] Fixed #7011 -- Clarified what User.is_active really means in the documentation.
Backport of r9176 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 11:26:59 +00:00
Malcolm Tredinnick 378dadc210 [1.0.X] Fixed #6979 -- Fixed the documentation cross-reference between the
TIME_ZONE setting and manual settings configuration.

Backport of r9175 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 11:25:45 +00:00
Malcolm Tredinnick f4a57bedd8 [1.0.X] Fixed #8768 -- Clarified that ugettext_lazy() results are unicode
proxies and can't be used as bytestrings.

Still a number of markup changes to be made in this file (and in this
changeset). That's intentional for now, since I'm going to rewrite the file
later this week.

Backport of r9168 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9174 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 08:48:17 +00:00
Malcolm Tredinnick 82a01a63a6 [1.0.X] Fixed #8184 -- Added a note to the documentation for reverse() that all
views must be importable for URL reversing to work correctly.

Backport of r9167 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 08:46:54 +00:00
Malcolm Tredinnick 282c38d406 [1.0.X] Fixed #9254 -- Added information to the porting guide about the removal
of "core" and the new methods on model file- and image-fields.

Backport of r9166 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9172 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 08:45:40 +00:00
Malcolm Tredinnick 51fb4bb0d3 [1.0.X] Fixed #8688 -- Added a note about using a settings variable for the
static media viewer with the development server. Based on a suggestion from
trodrigues.

Backport of r9165 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 08:44:40 +00:00
Malcolm Tredinnick 167a131e53 [1.0.X] Fixed a couple of markup errors in the documentation.
Backport of r9164 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 08:43:38 +00:00
Malcolm Tredinnick 6f0bcd23e6 [1.0.X] Fixed #9047 -- Marked up django.core.urlresolvers.reverse() properly in
the docs. It now appears in the index.

Backport of r9163 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 08:42:45 +00:00
Malcolm Tredinnick b5ac7f7918 [1.0.X] Added some better error reporting and path handling when creating template paths.
We now raise UnicodeDecodeError for non-UTF-8 bytestrings (thanks to Daniel
Pope for diagnosing this was being swallowed by ValueError) and allow UTF-8
bytestrings as template directories. (The last bit is arguably a feature-add,
but we allow UTF-8 bytestrings everywhere else, so I'm counting it as a bugfix.)

Refs #8965.

Backport of r9161 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 06:37:53 +00:00
Malcolm Tredinnick c201d14269 [1.0.X] Fixed #5753 -- Allow createsuperuser to work in situations where there
might be a valid password database entry for the current user id.

Backport of r9158 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 04:56:50 +00:00
Karen Tracey 48f4388c8b [1.0.X] Fixed #9212: Added code to check the xgettext version, and if it is lower than 0.15, undo an incorrect encoding to utf-8 done by xgettext. This bug was fixed in xgettext 0.15, but the most-easily-installed Windows gettext binaries are older (0.13.1), so we work around it.
Backport of r9155 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 01:38:22 +00:00
James Bennett 075274203f [1.0.X]: Add note to 1.0 porting guide about removal of dictionary access to HTTP request objects
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 16:04:55 +00:00
Malcolm Tredinnick 9273575e6b [1.0.X] Fixed #9068 -- Fixed a couple of typos in InsertQuery.clone(). Thanks, rush.
Backport of r9150 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 11:57:11 +00:00
Malcolm Tredinnick 89c2fba23b [1.0.X] Fixed #9283 -- Deliberately silence one deprecation warning raised by python 2.6.
Backport of r9148 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9149 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 11:41:19 +00:00
Malcolm Tredinnick 5da08047b9 [1.0.X] Changed the "write your own settings" recommendation to mention that Django
uses tuples, but not making it a recommendation. That might head off the endless
tuples vs. lists debates.

Fixed #8846.

Backport of r9146 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9147 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 09:00:07 +00:00
Malcolm Tredinnick 9b5c2293c6 [1.0.X] Fixed #8964 -- Added a note that MyISAM may not necessarily be the default
storage engine for MySQL. Some packagers seem to like causing confusion.

Backport of r9143 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9144 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 07:00:58 +00:00
Malcolm Tredinnick ee9c6ae269 [1.0.X] Fixed a typo and clarified how django.core.mail.outbox works in the testing framework. Fixed #9237.
Backport of r9140 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:41:15 +00:00
Malcolm Tredinnick 2993ef3d7e [1.0.X] Added django.contrib.markup to the docs contents page. Thanks, Marc Fargas.
Refs #9237.

Backport of r9139 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:40:47 +00:00
Malcolm Tredinnick 01b6e55f20 [1.0.X] Fixed #9257 -- Fixed a small mismatch in text in part 2 of the tutorial.
Backport of r9134 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:23:23 +00:00
Malcolm Tredinnick e15bdf767e [1.0.X] Fixed #9291 -- Tweaked a piece of example code slightly to set a good
example for others (now uses an encoding that is guaranteed to work for XML
consumers).

Backport r9133 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9137 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:22:58 +00:00
Malcolm Tredinnick f9e78ed612 [1.0.X] Fixed #9301 -- Correct a markup typo in the docs.
Backport of r9132 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:22:25 +00:00
Malcolm Tredinnick b0be5af39c [1.0.X] Fixed #9300 -- Typo fix in docs.
Backport of r9131 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:21:52 +00:00
Malcolm Tredinnick 571b159dd3 [1.0.X] Fixed #9259 -- Fixed a validation error for Spanish identity card numbers.
Patch from Marc Garcia.

Backport of r9129 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:00:55 +00:00
Malcolm Tredinnick 245399becb [1.0.X] Fixed #8963 -- Use the require_POST decorator instead of doing things manually in one of the comment views. Thanks, zgoda.
Bakcport of r9121 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9128 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:21:14 +00:00
Malcolm Tredinnick e88b70b779 [1.0.X] Fixed #9100 -- Added a missing CSS class to a submit button.
Thanks, mordyovits and thejaswi_puthraya.

Backport of r9120 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9127 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:20:40 +00:00
Malcolm Tredinnick ccc2387fd2 [1.0.X] Add internationalisation support to the comment templates. Fixed #8868, #8905
Thanks to zgoda for a patch that did most of the internationalisation part.

Backport of r9119 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9126 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:20:00 +00:00
Malcolm Tredinnick 389307025f [1.0.x] Fixed #8803 -- Allow authenticated users without first_name/last_name values set to post comments.
Backport of r9118 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:18:25 +00:00