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 |
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 |
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 |
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
|
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 |