Jacob Kaplan-Moss
|
2a65b00381
|
magic-removal: added transaction support to Django! see transactions.txt (in magic-removal) for the details.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-03-01 17:08:33 +00:00 |
Jacob Kaplan-Moss
|
2f27df2784
|
magic-removal: removed "follow" tests since follow is going away and isn't worth fixing.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-28 18:10:21 +00:00 |
Russell Keith-Magee
|
4b0acfc202
|
magic-removal: Added fixes to OneToOne descriptors and RelatedObjects to get one_to_one unit tests to pass. Still requires work on and extra unit tests for __set__ on SingleRelatedObjectDescriptor.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2437 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-28 14:02:20 +00:00 |
Russell Keith-Magee
|
f64c581497
|
magic-removal: Fixed #1407 -- Added a __set__ method for the single object descriptor. This enables setting related objects using poll.choice = c, and ensures that the cache is kept accurate in the process.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2435 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-28 11:36:20 +00:00 |
Russell Keith-Magee
|
a6a6c4117b
|
magic-removal: Refs #1407 -- Added remove() and clear() methods for ForeignKeys that allow nulls.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2434 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-28 10:12:45 +00:00 |
Jacob Kaplan-Moss
|
64330d7355
|
Fixed a little typo in the lookup tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2430 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-28 00:25:25 +00:00 |
Jacob Kaplan-Moss
|
d0b4cc4681
|
Fixed custom_methods test which was using __ne lookup that no longer exists.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-28 00:23:09 +00:00 |
Jacob Kaplan-Moss
|
9cdd49c1e0
|
Added QuerySet.exclude() which does the opposite of QuerySet.filter(). As a side effect, the "ne" lookup type no longer exists. This fixes #966.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2422 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-27 22:51:36 +00:00 |
Joseph Kocherhans
|
f0e185c762
|
magic-removal: fixed #1409
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-27 17:33:23 +00:00 |
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 |
Adrian Holovaty
|
52f84c0f63
|
magic-removal: Merged to [2392]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2393 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-25 17:37:58 +00:00 |
Adrian Holovaty
|
cab51971ac
|
magic-removal: Merged to [2387]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2388 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-25 05:53:55 +00:00 |
Adrian Holovaty
|
65dc8f000b
|
magic-removal: Removed legacy init_minimal calls. Unit test framework works again.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2387 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-25 04:46:06 +00:00 |
Russell Keith-Magee
|
4708aee311
|
magic-removal: Fixes #1346 -- Added ability for m2m relations to self to be optionally non-symmetrical. Added unit tests for non-symmetrical behaviour.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-24 10:36:04 +00:00 |
Russell Keith-Magee
|
64cb7da150
|
magic-removal: Refs #1346 -- Added unit tests for expected behaviour of self referential m2m fields.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-24 10:15:27 +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 |
Adrian Holovaty
|
4cb8cca158
|
magic-removal: Merged to [2338]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2339 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-18 20:24:24 +00:00 |
Russell Keith-Magee
|
48320913ac
|
magic-removal: Removed last references to OLD_get_accessor_name, and added unit tests to ensure accessor names are used correctly during validation.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2313 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-17 12:46:03 +00:00 |
Russell Keith-Magee
|
6e8203a06c
|
magic-removal: Fixes #1343 -- Modified model validator to only validate the model being installed. Includes unit test framework changes to allow validation tests.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-16 14:07:23 +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 |
Russell Keith-Magee
|
e8017bb5c0
|
magic-removal: Fixed #1305 -- Added new unit test group for reverse lookup queries over foreign keys. Thanks, Andreas.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2280 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-06 11:21:02 +00:00 |
Russell Keith-Magee
|
96c66c7fdb
|
magic-removal: Deferred import of django.db.models to allow --settings option to work on runtests.py.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2279 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-05 06:24:35 +00:00 |
Luke Plant
|
6a90f49fe5
|
magic-removal: elimated 'module._MODELS' and replaced with a register function,
so that setting 'app_label' is all that's needed for models in different files.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2278 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-05 00:03:12 +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
|
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 |