1
0
mirror of https://github.com/django/django.git synced 2025-10-28 08:06:09 +00:00

[1.10.x] Fixed #26997 -- Fixed checks crash with empty Meta.default_permissions.

Backport of 4e64e3bb6e from master
This commit is contained in:
Sergey Yurchenko
2016-08-02 22:19:01 +03:00
committed by Tim Graham
parent b00a3f1720
commit a8b8ef114d
3 changed files with 14 additions and 1 deletions

View File

@@ -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()), [])