summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/regressiontests/swappable_models/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regressiontests/swappable_models/tests.py b/tests/regressiontests/swappable_models/tests.py
index d9a01f9e26..75644e32aa 100644
--- a/tests/regressiontests/swappable_models/tests.py
+++ b/tests/regressiontests/swappable_models/tests.py
@@ -26,8 +26,8 @@ class SwappableModelTests(TestCase):
"Permissions and content types are not created for a swapped model"
# Delete all permissions and content_types
- Permission.objects.all().delete()
- ContentType.objects.all().delete()
+ Permission.objects.filter(content_type__app_label='swappable_models').delete()
+ ContentType.objects.filter(app_label='swappable_models').delete()
# Re-run syncdb. This will re-build the permissions and content types.
new_io = StringIO()