diff options
| author | Sergey Yurchenko <urchenko88@gmail.com> | 2016-08-02 22:19:01 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-03 09:14:27 -0400 |
| commit | a8b8ef114dd01d9c1e71a620b732b9aac7b7da5c (patch) | |
| tree | 1289d859a72ca1d459c8b68fcc09aaeb6f64de4e /tests | |
| parent | b00a3f17209789fd6036aa93194c04b05f51047a (diff) | |
[1.10.x] Fixed #26997 -- Fixed checks crash with empty Meta.default_permissions.
Backport of 4e64e3bb6e96a50b057bc1144fba3efdee7dfc10 from master
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/auth_tests/test_checks.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auth_tests/test_checks.py b/tests/auth_tests/test_checks.py index 962444fb60..8dca3159d1 100644 --- a/tests/auth_tests/test_checks.py +++ b/tests/auth_tests/test_checks.py @@ -195,3 +195,10 @@ class ModelsPermissionsChecksTests(SimpleTestCase): id='auth.E008', ), ]) + + def test_empty_default_permissions(self): + class Checked(models.Model): + class Meta: + default_permissions = () + + self.assertEqual(checks.run_checks(self.apps.get_app_configs()), []) |
