diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2010-03-25 17:32:52 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2010-03-25 17:32:52 +0000 |
| commit | 373daf587659d2aa396f25811d5f1d03b334d6bd (patch) | |
| tree | 95bb3acab4a30cdb6d3773811eafc3932594f971 | |
| parent | 93b5edddcec8180261178d898ae63e8262767d7c (diff) | |
[1.1.X] Modified the delete test to clean up after itself properly, so that the proxy_model_inheritance test can run without requiring manual confirmation.
Backport of r12850 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12851 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/modeltests/delete/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/modeltests/delete/models.py b/tests/modeltests/delete/models.py index 58b296d8d2..a4897b8fc9 100644 --- a/tests/modeltests/delete/models.py +++ b/tests/modeltests/delete/models.py @@ -198,5 +198,10 @@ CLEARING FIELD f # Put this back to normal >>> django.db.models.sql.UpdateQuery = original_class + +# Restore the app cache to previous condition so that all models are accounted for. +>>> cache.app_models['delete'].keyOrder = ['a', 'b', 'c', 'd', 'e', 'f'] +>>> clear_rel_obj_caches([A, B, C, D, E, F]) + """ } |
