Commit Graph

1831 Commits

Author SHA1 Message Date
Adrian Holovaty 7901c93328 magic-removal: Merged to [2454]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01 03:57:57 +00:00
Adrian Holovaty b2dd439085 magic-removal: Fixed #1405 -- 'createsuperuser' no longer assumes 'import pwd' will work. Thanks, anonymous
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01 03:26:08 +00:00
Adrian Holovaty e8cfcf28e6 magic-removal: Merged to [2450]
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01 03:21:51 +00:00
Duncan Foster 53ac6f9782 magic-removal: Fixed #1172, Datetime fields in admin interface shouldn't be cleared for validation errors.
Simply return the bad data.


git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2446 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 19:27:42 +00:00
Jacob Kaplan-Moss 2f27df2784 magic-removal: removed "follow" tests since follow is going away and isn't worth fixing.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 18:10:21 +00:00
Duncan Foster a86b6287de magic-removal: Fixed #1384: Don't return when sending email fails, just skip to the next address.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 15:02:03 +00:00
Adrian Holovaty a3aa545250 magic-removal: Fixed #1418 -- Applied management.py fixes for 'sqlclear'. Thanks, nesh
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 14:27:00 +00:00
Adrian Holovaty 18d1b8177d magic-removal: Fixed #1417 -- Fixed admin.models.LogEntry.get_admin_url() to use new ContentType model fields. Thanks, nesh
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2441 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-02-28 14:23:53 +00:00
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