Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modified the delete test to clean up after itself properly, so that t…

…he proxy_model_inheritance test can run without requiring manual confirmation.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12850 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f13014b7e2b5f07b63e33eaeb13bd637b77ad168 1 parent 59a7ca9
@freakboy3742 freakboy3742 authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/modeltests/delete/models.py
View
5 tests/modeltests/delete/models.py
@@ -198,5 +198,10 @@ class F(DefaultRepr, models.Model):
# 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])
+
"""
}
Please sign in to comment.
Something went wrong with that request. Please try again.