Commit Graph

1848 Commits

Author SHA1 Message Date
Russell Keith-Magee eb4c05e031 magic-removal: Updated unit tests to reflect changes in validation errors introduced by r2472.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2477 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-03 10:14:53 +00:00
Adrian Holovaty 650b042001 magic-removal: Fixed #1447 -- More old-style DB API fixes. Thanks, russell@hbd
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2475 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 15:49:30 +00:00
Adrian Holovaty 85f7fba723 magic-removal: Fixed #1445 -- Moved response middleware-handling code inside try/finally that closes DB connection
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 14:34:37 +00:00
Russell Keith-Magee fd3de3e29e magic-removal: Modified model validation error messages to suggest a way of fixing name clash problems.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2472 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 10:05:09 +00:00
Adrian Holovaty 5e6d82a83c magic-removal: Fixed #1436 -- Fixed typo in django-admin.py error messages. Thanks, akaihola
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 05:45:19 +00:00
Adrian Holovaty bfbd1a9434 magic-removal: Merged to [2468] (who do we appreciate)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 05:09:10 +00:00
Adrian Holovaty 2695d52f50 magic-removal: Fixed #1440 -- Changed django.core.management not to execute multiple SQL statements in the same cursor.execute(). Thanks, Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2467 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 05:04:21 +00:00
Adrian Holovaty 6dd46ebc50 magic-removal: Changed commit_on_success section of docs/transactions.txt to be more clear
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 05:01:04 +00:00
Adrian Holovaty a93fbfd616 magic-removal: Removed introspection table_exists() functions -- they weren't being used, and you can just use get_table_list()
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2465 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 04:50:43 +00:00
Adrian Holovaty 910986dde2 magic-removal: Removed _get_packages_insert() from django.core.management
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2464 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 04:47:06 +00:00
Adrian Holovaty 25391d5e98 magic-removal: Fixed typo in modeltests/transactions/models.py docstring
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 04:20:22 +00:00
Adrian Holovaty 8c8afa22c0 magic-removal: Typo corrections in transaction code and docs
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 01:37:06 +00:00
Jacob Kaplan-Moss 27bb553ba0 Added introspection.table_exists() method to db instrospection; this is used all over the place in django.db.management and will break under database backends that don't support LIMIT.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 00:28:40 +00:00
Jacob Kaplan-Moss 7e11865b84 magic-removal: Refactored a bunch of django.core.management, including fixes to syncdb and permissions.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2460 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-02 00:02:20 +00:00
Jacob Kaplan-Moss c6ab599431 Fixed #1434 -- added tests for ObjectPaginator (thanks, Matt)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01 20:27:58 +00:00
Jacob Kaplan-Moss 3ecacdb5fa magic-removal: Added a clarification to docs/transactions.txt (thanks, Malaprop)
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2458 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01 18:24:35 +00:00
Jacob Kaplan-Moss 2a65b00381 magic-removal: added transaction support to Django! see transactions.txt (in magic-removal) for the details.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2006-03-01 17:08:33 +00:00
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