Luke Plant
|
e28addd70b
|
magic-removal: Implemented clear() for m2m fields.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2287 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-06 22:27:51 +00:00 |
Luke Plant
|
28b16af6ca
|
magic-removal: negligible whitespace fix
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2286 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-06 22:17:28 +00:00 |
Luke Plant
|
d03b2de326
|
magic-removal: Fixed bug with m2m 'add()' in the case where the objects were already added (fixes one test)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2285 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-06 22:16:15 +00:00 |
Luke Plant
|
a91ebaa2c3
|
magic-removal: Implemented 'remove()' for m2m relationships, and tidied up related 'add()' code a bit
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2284 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-06 21:02:33 +00:00 |
Luke Plant
|
1969c9f88b
|
magic-removal: Fixed HTML error in admin/docs
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2283 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-06 19:42:14 +00:00 |
Luke Plant
|
a19915e7ea
|
magic-removal: Fixed #1331 - flatten_data method of ManyToManyField now
updated for descriptor changes. Thanks, Tom Tobin.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2281 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-06 12:47:25 +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
|
adc562d42d
|
magic-removal: Allowed model classes to provide their own 'app_label', and
added method for manually registering the model classes when they don't
live in models.py
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2277 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 23:13:07 +00:00 |
Luke Plant
|
14cf7ea9d2
|
magic-removal: Got 'add()' working for the other end of a ManyToMany relationship.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2276 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 23:09:50 +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
|
fae0dde7bb
|
magic-removal: Updated list_detail generic views to take 'queryset' instead of 'model'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2274 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 21:24:15 +00:00 |
Adrian Holovaty
|
00752157e4
|
magic-removal: Merged to [2272]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2273 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 20:19:12 +00:00 |
Luke Plant
|
1f174e8d24
|
magic-removal: Updated list_detail generic views to use the new style ORM syntax
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 19:40:51 +00:00 |
Luke Plant
|
9661076827
|
magic-removal: Fixed HTML errors in admin/change_form template
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2269 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 19:38:34 +00:00 |
Adrian Holovaty
|
c2e2893460
|
magic-removal: Fixed #1326 -- Allowed model properties in list_display. Thanks, Kieran Holland
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 19:31:39 +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 |
Luke Plant
|
e99c0d6a00
|
magic-removal: Fixed error in a comment in ReverseManyRelatedObjectsDescriptor
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 13:34:06 +00:00 |
Luke Plant
|
635dcd9c2f
|
magic-removal: Fixed get_model() so that it checks app_label (allowing admin to handle
models with the same object_name but different app_labels)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2265 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 00:59:02 +00:00 |
Adrian Holovaty
|
9881e049d0
|
magic-removal: Fixed old-style DB API call in FileField.delete_file()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2264 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 00:27:45 +00:00 |
Adrian Holovaty
|
98ff9555f8
|
magic-removal: Removed db.models.related.RelatedObject.get_list -- it wasn't being used
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2263 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 00:27:22 +00:00 |
Adrian Holovaty
|
6becd68eef
|
magic-removal: Fixed old-style DB API call in db.models.manipulators
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2262 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-04 00:26:56 +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
|
eee4f00bfb
|
magic-removal: Improved QOperator.get_sql() to NOT output parenthesis in where clause if there is no where clause
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2257 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 23:30:56 +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
|
15d99ff525
|
magic-removal: Implemented adding many-to-many objects -- obj.sites.add() instead of obj.set_sites()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2255 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 23:26:58 +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
|
e456bbb752
|
magic-removal: Refactored ManyRelatedObjectsDescriptor and ReverseManyRelatedObjectsDescriptor to use normal class syntax in creation of RelatedManager, rather than using types module. It's more readable now.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2252 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 22:47:57 +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
|
bd5b9412b3
|
magic-removal: Changed QuerySet.in_bulk() to check for tuple or list, because it was accepting strings, which are iterable.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2250 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 22:29:15 +00:00 |
Adrian Holovaty
|
c060e85c8d
|
magic-removal: Removed Model._get_related_many_to_many(), which was no longer being used.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 22:18:51 +00:00 |
Luke Plant
|
3c1bdb0d90
|
magic-removal: Fixed __collect_sub_objects, so delete() now works and some more tests pass.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2248 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 20:42:44 +00:00 |
Adrian Holovaty
|
2ff5e5e765
|
magic-removal: Added ReverseManyRelatedObjectsDescriptor, which implements many-to-many lookup -- e.g. poll_obj.sites rather than poll_obj.get_site_list(). Many-to-many addition/deletion still needs to be done.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2247 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 20:36:50 +00:00 |
Adrian Holovaty
|
f59ca4e96c
|
magic-removal: Removed QuerySet.core_filters hook, because we now have Manager.get_query_set() hook
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 20:32:19 +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
|
b9c2b3e83f
|
magic-removal: Changed model validator not to check for 'singular' on ManyToManyFields, because that's not going to be used anymore.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2243 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 20:01:58 +00:00 |
Adrian Holovaty
|
ce0c6887d6
|
magic-removal: Collapsed else statements in SingleRelatedObjectDescriptor and ManyRelatedObjectsDescriptor
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 19:11: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 |
Adrian Holovaty
|
3310377501
|
magic-removal: Fixed #1324 -- Added missing comma to models.fields.related. Thanks, andreas@mindpicnic.com
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2238 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 15:04:38 +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
|
5366beeb70
|
magic-removal: Fixed bug in parse_lookup introduced in 2150, and tidied up a bit
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2236 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-03 13:03:51 +00:00 |
Adrian Holovaty
|
1308017f62
|
magic-removal: Fixed #1308 -- Updated get_package() -> package() in admin models
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2232 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-02 14:53:12 +00:00 |
Adrian Holovaty
|
fd7c0a1a7c
|
magic-removal: Merged to [2226]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-02 05:11:21 +00:00 |
Adrian Holovaty
|
35a3103283
|
magic-removal: Merged to [2223]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2225 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
2006-02-02 05:01:10 +00:00 |