Commit Graph

169 Commits

Author SHA1 Message Date
Adrian Holovaty 3c73a0e8d6 magic-removal: Fixed bug in m2m_multiple model unit tests. Down to 10 unit-test failures total
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2261 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-04 00:12:05 +00:00
Adrian Holovaty cbc144b375 magic-removal: Added support for QuerySet.latest() and Manager.latest(), and updated unit tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2260 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-04 00:07:03 +00:00
Adrian Holovaty ee05e42a36 magic-removal: Fixed errors in many_to_one_null model unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2259 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 23:47:36 +00:00
Adrian Holovaty 5bd6d2b949 magic-removal: Fixed errors in custom_pk model unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2258 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 23:42:46 +00:00
Adrian Holovaty a624c77cc1 magic-removal: Fixed errors in m2m_multiple unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2256 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 23:30:12 +00:00
Adrian Holovaty c9814b838f magic-removal: Fixed some bugs in many_to_many unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2254 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 23:26:16 +00:00
Adrian Holovaty 23748415d3 magic-removal: Improved model unit-test runner to rollback database for each test in case of exception
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2253 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 23:24:20 +00:00
Adrian Holovaty 36c66d7d39 magic-removal: Fixed incorrect related_name in m2o_recursive unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 22:31:56 +00:00
Adrian Holovaty 5f646ff486 magic-removal: Fixed bugs in m2o_recursive2 model unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 20:29:45 +00:00
Adrian Holovaty 6fa54ec9fd magic-removal: Fixed many_to_many and m2m_multiple model unit tests to use correct many-to-many manager name (the field name, not object_name +'_set')
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 20:03:04 +00:00
Adrian Holovaty fe94847e2c magic-removal: Updated one_to_one unit tests to use self.restaurant instead of self.get_restaurant(), etc.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 17:23:24 +00:00
Luke Plant 4d724b4d90 magic-removal: Updated m2m_intermediary tests to use new attribute syntax.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2237 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-03 13:28:29 +00:00
Luke Plant 671da7036f magic-removal: Fixed some incorrect tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2210 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-31 23:28:47 +00:00
Luke Plant a37d862ded magic-removal: fixed an out-by-one error in the 'basic' model tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2206 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-31 22:02:20 +00:00
Luke Plant 5c3789c908 magic-removal: extracted usages of QuerySet in Manager to a single method,
which can easily be overridden to create custom managers, and updated 
tests with new method of creating custom managers.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-31 21:54:28 +00:00
Luke Plant 8aeeec0b35 magic-removal: Fixed an incorrect model test in 'ordering', and updated comments too.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-31 02:27:18 +00:00
Adrian Holovaty e51fcf8ec3 magic-removal: Created InBulkQuerySet, ValuesQuerySet and DateQuerySet, subclasses of QuerySet that provide custom iterator(). This lets you use iterator() with in_bulk(), values() and dates(). Also added unit tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-31 02:21:31 +00:00
Luke Plant 2983bd8989 magic-removal: updated syntax of 'or_lookup' model tests, including
logical combinations of both QuerySets and Q objects


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2199 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-31 02:06:42 +00:00
Luke Plant 34bf9e8d31 magic-removal: Fixed bug with .values() when no arguments are passed, and added test for it
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2197 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-31 01:50:16 +00:00
Adrian Holovaty 9fa5c43d5b magic-removal: Changed syntax in unit tests -- hopefully for the last time.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-31 01:08:02 +00:00
Adrian Holovaty b349e42aac magic-removal: Updated unit tests to use objects.all()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2190 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 22:44:05 +00:00
Adrian Holovaty c0529945b4 magic-removal: Fixed a couple more unit-test bugs
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 06:07:57 +00:00
Adrian Holovaty 104fcb2447 magic-removal: Fixed bugs in many_to_one unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 06:00:50 +00:00
Adrian Holovaty 08e3bc8dd8 magic-removal: Fixed bug in many_to_one unit test
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 05:57:30 +00:00
Adrian Holovaty e49a09731b magic-removal: Implemented QuerySet.values(). All 'lookup' unit tests pass.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 05:38:02 +00:00
Adrian Holovaty f0d3b56d76 magic-removal: Fixed some errors in 'lookup' model unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 05:21:11 +00:00
Adrian Holovaty 97e7ff7c27 magic-removal: Changed get_DATEFIELD_list() manager method to dates(), which takes the name of the date field. Updated docs and unit tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2177 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 04:36:41 +00:00
Adrian Holovaty abd2bdba14 magic-removal: Fixed bug in manipulators model unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2170 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 03:41:18 +00:00
Adrian Holovaty a71574a476 magic-removal: Changed custom_managers unit tests to set core_filters directly rather than _set_core_filter()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2169 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 03:40:06 +00:00
Adrian Holovaty 2be3eefdff magic-removal: Updated some of the unit tests to use new syntax. 175 unit-test failures at this point.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-30 00:38:23 +00:00
Luke Plant 2fd362f2d7 magic-removal: Updated model tests for new syntax: 'basic', 'custom_managers' and 'custom_columns'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-29 00:23:52 +00:00
Russell Keith-Magee ce71979e53 magic-removal: Modified query lookup to correctly handle non-plural RelatedObjects.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-28 17:06:05 +00:00
Joseph Kocherhans faf9ff6316 magic-removal: Fixed some model tests that broke with removal of pluralization in [2111].
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-25 21:51:13 +00:00
Adrian Holovaty 69120fa9d3 magic-removal: Changed delete() safety-mechanism logic to happen as soon as possible.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2107 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-23 02:34:07 +00:00
Russell Keith-Magee 186c09d96f magic-removal: Refs 1219 -- Added DELETE_ALL=True safety mechanism to prevent accidental deletion of entire table contents.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2047 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-18 13:16:58 +00:00
Adrian Holovaty c85e3d4a2a magic-removal: Added some unit tests to many_to_one that verify deletion of related objects
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2040 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 21:55:07 +00:00
Adrian Holovaty 51d2de6a56 magic-removal: Changed save_delete_hooks unit test to use new convention for overriding save() and delete()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2037 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 19:18:24 +00:00
Adrian Holovaty 6074e49daa magic-removal: Merged to [2034]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2035 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 17:57:27 +00:00
Russell Keith-Magee c983ab3e16 magic-removal: Fixed template unit tests. Corrected expected output for 'spaceless' tests, added extra error condition for cycle tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2030 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 12:47:12 +00:00
Russell Keith-Magee 00f93bc7bb magic-removal: Fixed #1219 - Added bulk delete for objects.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2029 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-17 12:06:16 +00:00
Adrian Holovaty 2cfb709ac2 magic-removal: Merged to [1967], a fantastic year in pop music
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1968 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15 01:54:32 +00:00
Adrian Holovaty 08f032f6b5 magic-removal: Merged to [1964]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1965 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-15 00:53:19 +00:00
Joseph Kocherhans fe02b0e998 magic-removal: updated tests to reflect new location of django.core.template
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1947 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-13 17:36:53 +00:00
Adrian Holovaty b6954b5ffc magic-removal: Fixed #1217 -- Added some template-tag unit tests. Thanks, nick at efford.net
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1944 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-13 17:22:44 +00:00
Joseph Kocherhans 7e3abb4c35 magic-removal: Updated tests to reflect new location of django.utils.httpwrappers
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1915 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-11 21:46:32 +00:00
Russell Keith-Magee 0389e6261b magic-removal: Cleaned up get_in_bulk() and __get_date_list() DB queries to match documentation and improve error checking.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1885 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-09 14:34:17 +00:00
Russell Keith-Magee dde6963869 magic-removal: Fixed #1133 -- Added ability to use Q objects as args
in DB lookup queries.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1884 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-09 11:01:38 +00:00
Adrian Holovaty 8b1662a185 magic-removal: Changed 'reserved_names' model unit tests to add tests that get_date_extract_sql and get_date_trunc_sql properly escape table and column names
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1877 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-09 01:48:02 +00:00
Adrian Holovaty f998c7bcc6 magic-removal: Fixed #1186 -- Fixed problem resolving primary key in some 'pk' database queries. Also lightly refactored query-parsing code. Thanks, Russ
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1856 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-08 06:16:05 +00:00
Joseph Kocherhans 1091c18c39 magic-removal: django-admin.py init now installs django.contrib.sessions and django.contrib.sites. Also added init_minimal and changed runtests to use it. Note that init_minimal is not available as a django-admin.py command yet.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1845 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-01-06 22:45:00 +00:00