Adrian Holovaty
|
23964a7b9a
|
Fixed #2458 -- DB API now properly escapes backslashes, so you don't have to double-escape them. Thanks, tom@eggdrop.ch
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3552 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-08-11 05:20:31 +00:00 |
Malcolm Tredinnick
|
a6a402a7db
|
Fixed #2512 -- Fixed SQL error when saving existing empty models.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-08-10 03:55:03 +00:00 |
Adrian Holovaty
|
3770dbde3c
|
Added urlpatterns_reverse unit tests, which test the reverse lookup of URLs
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-28 02:08:36 +00:00 |
Jacob Kaplan-Moss
|
847b1ed54e
|
Fixed #1650: the {% extends %} tag now can extend a Template object passed into the context. Thanks, clelland@gmail.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-27 23:23:55 +00:00 |
Malcolm Tredinnick
|
dd19218f4e
|
Fixed #2397 -- fixed markdown test to be a bit more lenient in what counts as a
pass due to whitespace differences between markdown versions. Thanks to
shields@msrl.com for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3420 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-22 02:47:17 +00:00 |
Malcolm Tredinnick
|
4537cf3dd4
|
Fixed the timeuntil and timesince filter tests to not fail if the system clock
ticks over during the tests. Also fixed the template tests to be able to run in
standalone mode again.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-15 12:32:14 +00:00 |
Adrian Holovaty
|
79b7fc17a1
|
Small formatting change to m2m_and_m2o model unit test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-11 03:20:11 +00:00 |
Adrian Holovaty
|
1805bbb6cd
|
Changed runtests.py to set USE_I18N=True for testing
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3319 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-11 03:09:14 +00:00 |
Malcolm Tredinnick
|
a778c9de47
|
Fixed #1578 -- fixed a corner-case where we still wanting core=True attributes
on a model that was not being edited inline.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-04 10:48:07 +00:00 |
Russell Keith-Magee
|
b9d9351e85
|
Fixes #2202 -- Added ability to customize output of pluralize filter to handle irregular cases (walrus/walruses, cherry/cherries). Thanks to gid for the suggestion and the initial patch
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3272 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-04 06:18:39 +00:00 |
Russell Keith-Magee
|
6b383afd39
|
Fixes #1338, Refs #1400, #2237 -- Modified variable resolution to allow template 'if' statements to work if TEMPLATE_STRING_IF_INVALID is set. Modified unit tests to force the use of this variable, so that returning '' isn't confused with an actual failure.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-04 03:21:44 +00:00 |
Russell Keith-Magee
|
cd7b54aab0
|
Fixes #2271 -- Added code to imply !__exact on any query argument that doesn't finish with a known query term.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-01 03:14:33 +00:00 |
Russell Keith-Magee
|
c81d69354a
|
Fixed #2217 -- Allowed raw objects to be used in __exact and __in query terms. Existing use of primary keys in query terms is preserved.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-07-01 01:14:41 +00:00 |
Jacob Kaplan-Moss
|
c9032ab07f
|
Added a JSON serializer, a few more tests, and a couple more lines of docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-29 16:42:49 +00:00 |
Jacob Kaplan-Moss
|
4ea7a11659
|
Added initial cut at serialization framework, along with some basic tests and a stab at some docs. This is all a bit rough right now, so expect some bumps.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-28 16:00:37 +00:00 |
Malcolm Tredinnick
|
414bc24e81
|
Fixed #1754, #2211, #2192 -- allow date filtering comparisons to use strings as
well as date objects. Fixed a couple of admin crashes as well.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-28 11:37:17 +00:00 |
Jacob Kaplan-Moss
|
48562965b9
|
Added {{{Manager.create()}}} method to create and save an object in a single step.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-27 20:36:25 +00:00 |
Russell Keith-Magee
|
2adbe11678
|
Fixes #2216 -- Added extra tests for model validity, and cleaned up warning messages for existing tests. Models are now invalid if the query string required to access a field (or related object) would clash with the name of another field (or related object). Previous tests only checked the accessor names, not the query string.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-27 15:21:43 +00:00 |
Russell Keith-Magee
|
dc473309ef
|
Fixed #1661 -- Added logic for string-form model references in the 'to' argument of OneToOneFields. Includes regression test.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3197 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-23 08:16:36 +00:00 |
Russell Keith-Magee
|
0d4b5b9b4a
|
Fixed #1662 -- Added resolver for string-form model references for models that have already been loaded, with tests to validate both forward and backward referenced model names. Light refactoring of model loading to make regression tests behave more like normal model loading. Also clarifies the text of some validation errors.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-23 04:37:00 +00:00 |
Malcolm Tredinnick
|
68cfd446a3
|
Fixed the "timeuntil" and "timesince" tests so that they don't fail on a
machine under heavy load.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3188 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-21 12:11:00 +00:00 |
Malcolm Tredinnick
|
ae1234f2a2
|
Fixed #2163 -- Corrected typo when handling datetimes with timezones in the timesince filter. Thanks, Alex Dedul.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3186 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-21 11:11:03 +00:00 |
Malcolm Tredinnick
|
239adf83d3
|
Fixed #2053 -- added an optional comparison argument to the "timesince" filter.
Added a "timeuntil" filter that works analogously. Thanks, john@sneeu.com.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-21 06:56:08 +00:00 |
Adrian Holovaty
|
0e92f70602
|
Fixed runtests.py problem from [3177] where it assumed you were running the tests from within the tests directory
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-20 14:27:44 +00:00 |
Adrian Holovaty
|
5f47161831
|
Added semicolon test to regressiontests/initial_sql_regress/sql/simple.sql
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3180 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-20 14:11:59 +00:00 |
Malcolm Tredinnick
|
92571b0d48
|
Fixed #2119 -- fixed problems with splitting SQL statements into separate
statements. Uses a patch from eaw@woudy.org and some contributions from
jpellerin@gmail.com. Also fixes #2034 and #1935.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3178 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-20 08:00:44 +00:00 |
Malcolm Tredinnick
|
3e97535907
|
Fixed #2161 -- handle trailing newlines in initial SQL data. Includes
regression test. Thanks to russellm.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-20 07:12:45 +00:00 |
Malcolm Tredinnick
|
a513fcb455
|
Added regressions tests to ensure that one-to-one and many-to-many fields
continue to interact properly. Refs #1064. Refs #1506.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3176 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-20 05:29:19 +00:00 |
Adrian Holovaty
|
b93de6a2cb
|
Fixed bad formatting in 'lookup' model tests from [3157]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-20 04:16:11 +00:00 |
Adrian Holovaty
|
15cbc67ea2
|
Fixed #2195 -- Fixed spelling error in generic_relations model test. Other errors were fixed earlier today. Thanks, Tom Tobin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3160 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-20 03:03:43 +00:00 |
Malcolm Tredinnick
|
a8a133cc6c
|
Fixed #1857 -- Fixed get_previous_by_FIELD and get_next_by_FIELD to work
properly with keyword arguments. Patch from tom@jerakeen.org.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-20 02:17:14 +00:00 |
Adrian Holovaty
|
ed6d7285dd
|
Fixed some small typos in generic_relations model tests
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-19 20:19:01 +00:00 |
Malcolm Tredinnick
|
1fc3b3229a
|
Fixed #1683 -- Permit initialising models using settable properties as well as
field names.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-19 02:34:32 +00:00 |
Malcolm Tredinnick
|
75a8a32f86
|
Fixed #2181 -- allow '{' and '}' to be escaped via {% templatetag ... %}.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-18 04:12:55 +00:00 |
Jacob Kaplan-Moss
|
bca5327b21
|
Added generic foreign key support to Django. Much thanks to Ian Holsman and
Luke Plant -- most of this code is theirs. Documentation is to follow; for now
see the example/unit test. Fixes #529.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3134 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-16 19:18:30 +00:00 |
Jacob Kaplan-Moss
|
174e334d92
|
Test harness actually now installs contrib apps so they can be used in tests.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-16 18:58:45 +00:00 |
Malcolm Tredinnick
|
28e643743f
|
Fixed #2164 -- Create correct SQL when pk column name is not the same as the
attribute name. Thanks, Russell Cloran.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-15 11:28:28 +00:00 |
Malcolm Tredinnick
|
686c5a2f88
|
Fixed the empty model saving case so that it retrieves the primary key id. Also
updated the tests to test this case.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3118 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-12 12:49:14 +00:00 |
Malcolm Tredinnick
|
4fc6e51706
|
Tests to avoid regressions for ticket #2108. See also r3115.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3116 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-08 15:15:27 +00:00 |
Adrian Holovaty
|
2abfd5dd58
|
Fixed #2109 -- Convert old-style classes to new-style classes throughout Django. Thanks, Nicola Larosa
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-08 05:00:13 +00:00 |
Adrian Holovaty
|
5edd1335b2
|
Added django.template.Token.split_contents() and used it to add support for strings with spaces in {% ifchanged %}
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3112 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-08 04:29:10 +00:00 |
Adrian Holovaty
|
e5cd46d6d1
|
Fixed #2026 -- Added support for 'and' in template 'if' tags, added dozens of unit tests and updated docs. Thanks, ckknight
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-08 03:33:21 +00:00 |
Malcolm Tredinnick
|
89920e058f
|
Fixed #2108 -- do not try to save an empty model.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-08 00:13:52 +00:00 |
Malcolm Tredinnick
|
58ab678d35
|
Fix test output as a result of the change in r3094.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3103 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-07 09:19:43 +00:00 |
Adrian Holovaty
|
b3a6348bc2
|
Added Manager.get_or_create()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-07 00:09:29 +00:00 |
Adrian Holovaty
|
a5b7c29816
|
Changed all model unit tests to use __str__() instead of __repr__(). Also slightly changed related-object DoesNotExist exception message to use repr instead of str
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3075 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-04 00:23:51 +00:00 |
Adrian Holovaty
|
55e453a09c
|
Changed 'transactions' model unit test NOT to be executed for MySQL
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3074 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-03 23:45:49 +00:00 |
Adrian Holovaty
|
142e59b462
|
Fixed #2077 -- Renamed 'repr' model tests to 'str'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-03 22:14:04 +00:00 |
Adrian Holovaty
|
8ac9bb7ddf
|
Fixed unit-test output error in m2m_and_m2o unit tests, due to a change in the model's __repr__ earlier today
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3041 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-01 04:30:39 +00:00 |
Adrian Holovaty
|
cb9cb2045b
|
Fixed #720 -- Added first_on_page() and last_on_page() methods to ObjectPaginator. Thanks, m@bagai.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-06-01 04:29:39 +00:00 |