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:
committed by
Tim Graham
parent
b00a3f1720
commit
a8b8ef114d
@@ -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()), [])
|
||||
|
||||
Reference in New Issue
Block a user