Commit Graph

17 Commits

Author SHA1 Message Date
Russell Keith-Magee 841a12f98d magic-removal: Modified behavior of add() for ForeignKey descriptors to take a list of objects, rather than creating a new object. Added create() methods to ForeignKey and m2m descriptors to allow for new instance creation.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2409 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 14:23:52 +00:00
Luke Plant 29971e675f magic-removal: Added 'ordering' to models in m2m tests to make them more deterministic and fix a test that failed with MySQL
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2366 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-22 13:14:44 +00:00
Russell Keith-Magee a1d9de4dc7 magic-removal: Fixed #1219 -- Added implementation of bulk delete, and factored common deletion code out of individual models.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2307 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-14 09:51:27 +00:00
Luke Plant e69b09a033 magic-removal: Fixed use of return value of cursor.execute() in m2m add() and added a test to make sure
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2289 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-07 18:47:32 +00:00
Luke Plant fa80e9fcb7 magic-removal: Fixed some incorrect tests in many_to_many
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2275 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-04 22:47:05 +00:00
Luke Plant 6aff90c1ba magic-removal: Added (failing) tests for m2m .add() (the 'other' end) and m2m .remove() and .clear()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-04 18:28: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 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 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 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
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 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
Adrian Holovaty b72373a7fd magic-removal: Fixed #1143 -- Fixed backwards incompatibilities in many-to-many DB API lookups, added support for reverse many-to-many lookups, added unit tests. Thanks, Russ
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1802 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-30 16:38:26 +00:00
Adrian Holovaty d0fabc0499 magic-removal: Moved django.core.meta to django.db.models
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1631 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-14 05:02:51 +00:00
Adrian Holovaty 9b1dd36665 magic-removal: Moved model unit tests from 'testapp' package into 'modeltests' package, with each model test getting its own app
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1606 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-12-12 04:07:46 +00:00