Russell Keith-Magee
41fbd35613
Added check to prevent sequence reset if no fixtures are loaded.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 14:24:30 +00:00
Russell Keith-Magee
9350945963
Cleaned up the ordering of test data from [5232].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 14:21:00 +00:00
Russell Keith-Magee
c38a93e4d9
Fixed #4288 -- Modified serializers to pay attention to the to_field attribute on ForeignKeys. Thanks to Sandro Dentella for the report and the helpful test case.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 14:14:49 +00:00
Malcolm Tredinnick
f15036ae6d
Renamed form-specific cleaning methods to be do_clean_*, rather than clean_*.
...
This avoids a name clash that would occur when you had a form field called
"data" (because clean_data is already a dictionary on the Form class).
Backwards incompatible change.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 14:02:36 +00:00
Russell Keith-Magee
c89dc9cfa0
Fixed some incorrect reporting of error messages in assertRedirects, and added test cases to validate.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 11:07:14 +00:00
Malcolm Tredinnick
5152b55b38
Fixed #4283 -- Added Bulgarian translation. Thanks Jordan Dimov.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 08:12:03 +00:00
Adrian Holovaty
70703a6b71
Fixed #3780 -- Added first stab at 'Built-in Field classes' section to docs/newforms.txt, with help from SmileyChris and Marc Fargas
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5222 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 05:32:35 +00:00
Adrian Holovaty
0810919694
Fixed #4217 -- Added note to docs/databrowse.txt about import. Thanks, Thomas Güttler
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 03:29:13 +00:00
Adrian Holovaty
a386aa7cc2
Fixed #4285 -- Fixed ReST error in docs/testing.txt. Thanks, Michał Kwiatkowski
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5220 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 03:27:07 +00:00
Adrian Holovaty
cc1d02a5aa
Fixed ReST error in docs/newforms.txt from [5218]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5219 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 03:02:55 +00:00
Adrian Holovaty
2c86d57284
Added unit tests and docs for the newforms case in which the form's data doesn't include a value for a nonrequired field
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5218 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 02:57:42 +00:00
Adrian Holovaty
edc014b255
Another word tightening and clarification in docs/newforms.txt
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 02:21:28 +00:00
Adrian Holovaty
3d86329f82
Clarified migration plan in docs/newforms.txt
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5216 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-14 02:20:12 +00:00
Malcolm Tredinnick
d362799721
Removed a stray import that snuck into [5211].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-13 08:19:11 +00:00
Adrian Holovaty
1130f5e6b7
Fixed some ReST errors in docs/newforms.txt from [5212]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 17:11:19 +00:00
Adrian Holovaty
6500f3fefa
Edited changes to docs/newforms.txt from [5202]
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5212 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 17:02:44 +00:00
Malcolm Tredinnick
c7d7b6da3c
Fixed the test harness to work with Python 2.3 again (tested that it still
...
works with 2.4 and 2.5 as well).
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5211 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 16:53:27 +00:00
Malcolm Tredinnick
3780a4532c
Fixed a compatibility problem with Python 2.3.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 16:05:51 +00:00
Russell Keith-Magee
2345029d0d
Fixed #4018 -- Added code to allow callables as initial data in newforms. Thanks for the patch, David Danier.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5209 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 15:50:32 +00:00
Adrian Holovaty
330cc98c73
Fixed #4281 -- Fixed error in docs/i18n.txt example
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5207 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 15:38:24 +00:00
Adrian Holovaty
2af00ca29a
Changed 'email' to 'e-mail' in docs/testing.txt, to fit our consistent style
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5206 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 15:35:11 +00:00
Russell Keith-Magee
fd17163481
Fixed #4231 -- Added quoting for sequence names on sequence reset for PostgreSQL. This was causing difficulties if table or application names were capitalized. Thanks for the report, Mark Jarecki.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 15:21:33 +00:00
Russell Keith-Magee
6aa5091d58
Added docs for form_for_model and form_for_instance, and added a fields argument so it is easy to create forms from a subset of model fields.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 14:42:46 +00:00
Russell Keith-Magee
ca5e12b4ee
Removed unit tests added in [5196]; didn't notice the tests in modeltests/model_forms.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5201 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 12:22:50 +00:00
Russell Keith-Magee
1bb3ed7264
Added unit tests for form_for_model and form_for_instance.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5196 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-12 04:19:21 +00:00
Malcolm Tredinnick
5a803f5ebd
Fixed #4252 -- Fixed a typo in ReST formatting. Thanks, Collin Anderson.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 09:51:07 +00:00
Malcolm Tredinnick
7c0ef82752
Fixed #4276 -- Fixed a crash in the lorem tag when more than 20 words were
...
requested.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 09:44:13 +00:00
Malcolm Tredinnick
ee227a8507
Added native eol-style settings to necessary files. Refs #4276 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5189 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 09:13:37 +00:00
Malcolm Tredinnick
de5f67f17e
Fixed #4267 -- In example code, extract the template tag name correctly in
...
error messages where Token.split_contents() has failed. Thanks,
keisuke.nishida@gmail.com .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 08:50:54 +00:00
Malcolm Tredinnick
f9982c5c08
Fixed #4270 -- Don't permit deleting of items from an immutable QueryDict.
...
Thanks, Gary Wilson.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5187 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 08:22:06 +00:00
Malcolm Tredinnick
8562216c40
Fixed #4275 -- Fixed a couple of typos in the Simplified Chinese translation.
...
Thanks, imskyee@gmail.com .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-11 08:18:41 +00:00
Russell Keith-Magee
244a5d0006
Added the actual assertFormError changes, accidentally omitted from [5181].
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5182 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-10 13:48:18 +00:00
Russell Keith-Magee
70902908c7
Improved error reporting for assertions where there are no form errors, or a non-existent field has been provided. Also created a test client regression test, to hold the tests validating the failure cases of the TestCase assertions.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-10 13:46:15 +00:00
Russell Keith-Magee
c7db4beb62
Fixed import error handling when application tests are stored in a tests directory, rather than a tests.py file.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-10 12:07:34 +00:00
Russell Keith-Magee
5c68ab6e29
Added configurable arguments to assertRedirects and assertContains to allow for other response status codes. Thanks for the suggestion, Jiri Barton.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-10 11:27:59 +00:00
Malcolm Tredinnick
606f387f49
Fixed #4240 -- Updated Latvian translation. Thanks, Gacha.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-09 13:41:48 +00:00
Malcolm Tredinnick
c95a48b802
Fixed #4229 -- Updated Hebrew translation. Thanks, Meir Kriheli.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-09 13:36:22 +00:00
Malcolm Tredinnick
dabae55913
Fixed #4132 -- Updated Polish translation. Thanks, Michal Chruszcz.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5175 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-09 13:32:20 +00:00
Russell Keith-Magee
469314e7bc
Added redirection for email services during test conditions.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5173 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 11:19:34 +00:00
Malcolm Tredinnick
1c53661bd1
Moved generic relations into django.contrib.contenttypes, since it depends on
...
that to work. Backwards incompatible change.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5172 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 10:59:35 +00:00
Malcolm Tredinnick
0839a0046a
Fixed #4041 -- Added a __contains__ method to cache backends. Thanks, Gary
...
Wilson and SmileyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5171 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 04:13:46 +00:00
Malcolm Tredinnick
d1b0d34dc6
Fixed #4200 -- Made get_admin_log template tag behave according to its
...
docstring (user specifier is optional). Thanks, Bryan Chow.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 03:56:44 +00:00
Malcolm Tredinnick
af846c0b8b
Removed a bunch of trailing whitespace. Don't people realise whitespace is a
...
scarce resource, not to be wasted?
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 03:45:33 +00:00
Malcolm Tredinnick
b72c7d0517
Fixed #3936 -- Mentioned that the DATABASE_USER in the test settings file needs
...
permission to create a new database on the system. Patch from Vinay Sajip.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 03:42:19 +00:00
Malcolm Tredinnick
faa31732ca
Fixed #3753 -- Allow optional display of invalid variable name in
...
TEMPLATE_STRING_IF_INVALID. Thanks, Matt McClanahan.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5167 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 03:36:16 +00:00
Malcolm Tredinnick
77ec8ae811
Fixed #4203 -- Noted that "blank" defaults to False in models. Thanks,
...
david@kazserve.org .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5166 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 03:20:49 +00:00
Malcolm Tredinnick
4fddf43b81
Fixed #4042 -- Fixed typo in serialization example. Thanks, Vinay Sajip.
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5165 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 03:07:58 +00:00
Malcolm Tredinnick
aaf228de9a
Omitted AUTHORS change from last [5163]. Refs #4144 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5164 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 02:57:18 +00:00
Malcolm Tredinnick
93e2f246fd
Fixed #4144 -- Only check sys.modules when required during Model class
...
construction. Patch from Marty Alchin.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5163 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 02:56:18 +00:00
Malcolm Tredinnick
abff821f14
Fixed #4197 -- Added some updates to the German translation. Thanks, Thomas
...
Steinacher.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-05-08 02:50:41 +00:00