Commit Graph

1873 Commits

Author SHA1 Message Date
Adrian Holovaty 10d7f00b38 magic-removal: Fixed #1416 -- Fixed admin to use .create() rather than .add() for related objects. Thanks, nesh
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 14:22:33 +00:00
Adrian Holovaty d26558ebf3 magic-removal: Fixed #1414 -- Added __getattr__() to LazyDate. Thanks, akaihola
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2439 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 14:17:59 +00:00
Adrian Holovaty bd5a98c93f magic-removal: Fixed #1413 -- Fixed error message when a model isn't in INSTALLED_APPS. Thanks, akaihola
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 14:15:37 +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 a83c077545 magic-removal: Refs #1407 -- Modified descriptor set method to ask forgiveness rather than permission.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2436 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 11:41:44 +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
Duncan Foster f9ed0eded9 magic-removal: Fixed #1384 - ugly bug in mail_admins. Added additional try blocks.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2433 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 01:01:01 +00:00
cell 04b22e5002 magic-removal: laid groundwork for subclassing.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2432 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 00:50:06 +00:00
Joseph Kocherhans 36bfffccc4 magic-removal: fixed #1410. The UserSource class will eventually be replaced with the muti-auth stuff.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 00:46:07 +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
Adrian Holovaty ae19fb4c61 magic-removal: Merged to [2427]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 00:13:06 +00:00
Joseph Kocherhans 735e8a56bd magic-removal: removed reques.user logic from the handlers. It's now done via middleware.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2425 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 23:26:49 +00:00
Joseph Kocherhans f0117e5c7e magic-removal: added the new request user middleware to the project template
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2424 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 23:13:45 +00:00
Joseph Kocherhans 50f1717525 magic-removal: added middleware for adding request.user
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2423 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 23:03:35 +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
Adrian Holovaty 05bc38b2b4 magic-removal: Merged to [2420]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2421 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 22:30:34 +00:00
Jacob Kaplan-Moss bc8547aa9d Fixed #1375: primary_key values with "bad" characters are now escaped in the admin; thanks, Malcom Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2418 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 21:36:52 +00:00
Duncan Foster e9e18209cd Fix for #1089: Allow overrides of delete_confirmation and object_history,
patch supplied by Joseph Kocherhans.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2416 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 21:03:19 +00:00
Joseph Kocherhans 16387552c1 magic-removal: wrong signal sent after save.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2412 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 18:29:31 +00:00
Adrian Holovaty dac1a68645 magic-removal: Fixed #1280 -- Removed contenttypes.Package model and changed ContentType field to have a 'model' field
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2411 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 17:58:28 +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 1b55e492ef magic-removal: Moved django.template.ContextPopException to django.template.context module, where the code that calls it can find it. Also removed use of 'dict' as a local variable, because that's a Python builtin
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2408 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 05:19:25 +00:00
Adrian Holovaty e6962ff1a5 magic-removal: Changed django.core.management to remove legacy 'dbcheck' cruft and add a nicety in createsuperuser that uses the local OS user's username by default
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2407 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 05:18:18 +00:00
Adrian Holovaty b00a599720 magic-removal: Fixed #1179 -- Models not in INSTALLED_APPS now raise ImportError
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2406 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 05:17:08 +00:00
Adrian Holovaty 42dec1ef75 magic-removal: Renamed 'object' to 'obj' local variable in date-based and list-detail generic views, so as not to override the Python builtin 'object'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 05:16:24 +00:00
Adrian Holovaty fd10c3ae1e magic-removal: Removed duplicate import in django.template.loader
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 05:15:46 +00:00
Adrian Holovaty 67a3d5207e magic-removal: Removed a tiny bit of cruft in django.dispatch.dispatcher because we can assume Python 2.3+
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-27 05:15:29 +00:00
Adrian Holovaty e7c83b691b magic-removal: Removed remnant of init from [2400]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 23:15:00 +00:00
Adrian Holovaty e4ea91a0b5 magic-removal: Removed django.core.management._get_contenttype_insert()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 23:06:09 +00:00
Adrian Holovaty 0b84370782 magic-removal: Removed django.core.management.init(), which is no longer needed due to syncdb()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 23:01:47 +00:00
Adrian Holovaty 336bb0cd60 magic-removal: Got rid of django.core.management.database_check, which was never finished.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2399 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 22:58:10 +00:00
Adrian Holovaty 5f4fe3d02d magic-removal: Implemented 'manage.py syncdb'
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2398 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 22:56:34 +00:00
Jacob Kaplan-Moss e13ae5a645 Small tweak to [2395] so that it's a bit cleaner
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 19:54:32 +00:00
Adrian Holovaty 76cfd74542 magic-removal: Added stub of 'manage.py synchdb' command
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2396 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 19:45:16 +00:00
Jacob Kaplan-Moss 3ddc1b51f5 Added 'manager' option to Admin declaration; this controls which Manager to use for the admin queryset (defaults to the standard manager).
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2395 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 19:38:51 +00:00
Adrian Holovaty 863bd3d36a magic-removal: Changed db.models.loading to make sure get_models() and get_model() both call get_apps() first to ensure _app_list cache is filled
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2394 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-25 19:35:30 +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
Adrian Holovaty 39e4e8ce5a magic-removal: Removed 'init-minimal', which wasn't doing anything useful
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2386 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-24 23:35:58 +00:00
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