Commit Graph

1830 Commits

Author SHA1 Message Date
Russell Keith-Magee 773c176c6f magic-removal: Fixed some typos in comments.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2385 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-24 23:26:47 +00:00
Russell Keith-Magee 86a6ce8983 magic-removal: Refs #1346 -- Removed some redundant code that was missed in the checkin for r2381.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2384 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-24 10:42:32 +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 4f6d2a1d08 magic-removal: Refs #1346 -- Added the production of 'mirror' entries in the m2m table for m2m relations to self.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2382 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-24 10:28:46 +00:00
Russell Keith-Magee 492d2146da magic-removal: Refs #1346 -- Refactored query logic for m2m descriptor fields, and added logic to m2m name methods to allow m2m_recursive tests to create a valid SQL table.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2381 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-24 10:25:02 +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
Adrian Holovaty 891c3c993b magic-removal: Changed admin site to create ContentType object if it doesn't already exist, and removed the Options.get_content_type_id() function, which was coupling the database framework to contenttypes.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2377 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-24 06:06:20 +00:00
Adrian Holovaty 2fbf2d5f42 magic-removal: Added a TODO for fields_changed in manipulator code
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-23 21:18:14 +00:00
Adrian Holovaty f252b11a9c magic-removal: Fixed #1372 -- Got many-to-many fields working in manipulators
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2374 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-23 20:10:41 +00:00
Adrian Holovaty 208ea7bacb magic-removal: Fixed #1388 -- Fixed old-style DB lookup in create_update generic view. Thanks, Russell
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2373 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-23 19:14:05 +00:00
Adrian Holovaty ce18ec917c magic-removal: Fixed #1389 -- Fixed admin CSS bug. Thanks, russell@hbd.com
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2372 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-23 19:11:48 +00:00
Adrian Holovaty ae660f62d3 magic-removal: Changed VERSION from 'SVN' to 'magic-removal'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2370 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-23 17:38:42 +00:00
Adrian Holovaty 0a3985868a magic-removal: Merged to [2368]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2369 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-23 17:38:00 +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 f9d95dc4ad magic-removal: Renamed 'this' and 'rel' variables to 'source' and 'target', to clarify some confusing cases in m2m fields where 'this' object is the related field.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2363 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-19 08:49:59 +00:00
Russell Keith-Magee b730754415 magic-removal: Refactored accessor to name used to build related queries.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2362 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-19 08:35:40 +00:00
Russell Keith-Magee 96649cc329 magic-removal: Refactored accessor for m2m table name, and added accessors for m2m column names.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2361 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-19 08:24:21 +00:00
Adrian Holovaty bc5583f432 magic-removal: Merged to [2359]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2360 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 23:51:00 +00:00
Adrian Holovaty 6c9e2bc3f1 magic-removal: Merged to [2356]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2357 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 23:06:03 +00:00
Adrian Holovaty 9cb04f5fae magic-removal: Negligible spacing change
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2355 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 22:51:08 +00:00
Adrian Holovaty 35f0dabdca magic-removal: Fixed #1350 -- Changed QuerySet.in_bulk() to return the dictionary directly rather than returning a QuerySet subclass.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2354 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 22:47:03 +00:00
Adrian Holovaty f594bc4445 magic-removal: Merged to [2350]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2351 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-18 22:14:05 +00:00
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