Commit Graph

1758 Commits

Author SHA1 Message Date
Adrian Holovaty 77a0a9498f magic-removal: Merged to [2343]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2344 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 20:56:18 +00:00
Adrian Holovaty 6589992a38 magic-removal: Fixed #1054 -- Changed admin changelist to use __str__(), not __repr__()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 20:29:12 +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
Luke Plant 01732d4f72 magic-removal: Fixed an old variable name error in delete_file() for FileFields
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2335 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 17:44:31 +00:00
Adrian Holovaty 2dbd56795e magic-removal: Changed error message in model validator to use American spelling for 'initialized'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 20:16:42 +00:00
Adrian Holovaty f0c493f02f magic-removal: Merged to [2328]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2329 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 19:42:11 +00:00
Adrian Holovaty d1a91e311a magic-removal: Merged to [2323]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 18:06:45 +00:00
Adrian Holovaty a4c6730aa1 magic-removal: Merged to [2319]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 17:48:21 +00:00
Adrian Holovaty 5927af7465 magic-removal: Fixed #1361 -- Fixed old-style DB API usage in db/models/manipulators.py. Thanks, Ian Holsman
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2318 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 17:31:48 +00:00
Adrian Holovaty 7e70c7dacc magic-removal: Fixed #1362 -- Fixed old-style DB API usage in create_update generic views.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2317 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 17:27:06 +00:00
Adrian Holovaty 37942803b0 magic-removal: Fixed #1367 -- Got unique_together validator working. Thanks, Christopher Lenz
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2315 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 17:20:48 +00:00
Russell Keith-Magee ad24403e8b magic-removal: Fixes #1363 -- Moved a Python2.3 declaration of set from base to query, following the refactoring of delete code. Thanks, Esaj.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2314 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-17 12:56:48 +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
Adrian Holovaty 0604002ced magic-removal: Fixed #1358 -- Fixed Python 2.3 incompatibility in django.db.models.query. Thanks, Christopher Lenz
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-15 16:19:18 +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 c9839b85e5 magic-removal: Fixed #1344 - old-style related objects lookup in User model. Thanks, poissonnier.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2305 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-11 11:08:05 +00:00
Adrian Holovaty 70e75036a8 magic-removal: Changed views/generic/date_based to use queryset instead of model and extra_lookup_kwargs arguments
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2304 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-11 05:22:25 +00:00
Russell Keith-Magee 111dadafb0 magic-removal: Fixed a problem with query join order caused by a join dictionary being instantiated as a dict(), rather than a SortedDict().
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-11 03:15:36 +00:00
Adrian Holovaty d43d498ba2 magic-removal: Merged to [2300]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2301 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-10 21:35:29 +00:00
Adrian Holovaty 021b38a52c magic-removal: Fixed #1082 -- Fixed bug in sqlreset and reset with SQLite. Thanks, Christopher Lenz
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-10 05:12:43 +00:00
Adrian Holovaty 27ec1bc29d magic-removal: Merged to [2294]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2295 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-10 05:10:38 +00:00
Adrian Holovaty 9d809f2c3b magic-removal: Small logic simplification in django.db.models.ModelBase
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-08 23:57:07 +00:00
Luke Plant 61caa88613 magic-removal: Fixed bug in get_models()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-07 23:19:33 +00:00
Luke Plant b19eef14ed magic-removal: removed redundant pointless method call.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-07 22:44:41 +00:00
Luke Plant 7662520667 magic-removal: Changed registering of models so that only one 'model name'
can be registered per app_label (fixes duplicates in the admin app list if
the models are in separate files)


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2290 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-07 22:40:11 +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 ab6a97cb4a magic-removal: Fixed bug in combining ordered QuerySets
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2288 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-07 00:51:42 +00:00
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