Russell Keith-Magee
|
0c41869e6c
|
Made ``pk`` a generic expansion for the primary key, rather than just an expansion for __id__exact.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-09-25 13:49:01 +00:00 |
Malcolm Tredinnick
|
6dacb3d10b
|
Fixed #2729 -- Handle initial SQL with different line-ending styles (Windows
vs. Unix vs. Mac). Thanks, Simon Greenhill.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3821 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-09-25 07:36:46 +00:00 |
Malcolm Tredinnick
|
bd4c22be0b
|
Fixed #2454 -- Make "ifchanged" tag work more predictably inside nested
for-loops. Thanks, dummy@habmalnefrage.de.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3800 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-09-23 09:49:58 +00:00 |
Malcolm Tredinnick
|
670e8ab704
|
Fixed #2456 -- Added backslash escaping to addslashes, which is necessary once
you start escaping other things. Thanks, tom@eggdrop.ch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3799 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-09-23 08:41:09 +00:00 |
Malcolm Tredinnick
|
d296e5e565
|
Fixed #2743 -- Made the value of a cycle tag accessible through the context.
Patch from Martin Glueck.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3773 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-09-21 13:09:00 +00:00 |
Russell Keith-Magee
|
5a9839c547
|
Fixes #2653 -- Modified related field utility methods to return None as the related name for symmetrical m2m fields on self. Updated validators and unit tests to account for the new behavior.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-09-07 13:29:56 +00:00 |
Russell Keith-Magee
|
cfe77946d7
|
Fixes #2637 -- Clarified handling of TEMPLATE_STRING_IF_INVALID, especially with regards to filtering of invalid values. Modified unit tests to test both empty and non-empty values for TEMPLATE_STRING_IF_INVALID. Thanks to SmileyChris for identifying and helping to resolve this bug.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-09-04 14:02:11 +00:00 |
Russell Keith-Magee
|
826b9ff5e5
|
Refs #2333 - Added model test for the test Client.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3708 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-09-02 09:34:40 +00:00 |
Russell Keith-Magee
|
d78e2ae355
|
Refs #2333 - Added a TEST_DATABASE_NAME setting that can be used to override the 'test_' + DATABASE_NAME naming policy. This setting is then used in runtests.py to restore the use of 'django_test_db' as the Django model/regression test database. Thanks to Michael Radziej for the feedback.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-09-01 13:33:26 +00:00 |
Adrian Holovaty
|
fe5462e57a
|
Fixed typo in docstring of get_latest model unit test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3683 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-08-31 03:16:08 +00:00 |
Russell Keith-Magee
|
97b9ad73b4
|
Refs #2333 - Modified runtests script to use new testing framework. Migrated existing tests to use Django testing framework. All the 'othertests' have been migrated into 'regressiontests', and converted into doctests/unittests, as appropriate.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3661 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-08-27 13:59:47 +00:00 |
Adrian Holovaty
|
74f5d2b9b0
|
Fixed #2528 -- Fixed 'time' template filter for midnight time value. Thanks, django@dougma.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3563 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-08-12 05:09:12 +00:00 |
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 |