diff --git a/aleksis/core/migrations/0001_initial.py b/aleksis/core/migrations/0001_initial.py index bdfa9da40471efcbe0b57e7f2c549bfc339d50f5..07e4bf433df4d8aec43814493d7dde6527d1f8f1 100644 --- a/aleksis/core/migrations/0001_initial.py +++ b/aleksis/core/migrations/0001_initial.py @@ -28,7 +28,8 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], options={ - 'permissions': (('view_system_status', 'Can view system status'), ('link_persons_accounts', 'Can link persons to accounts'), ('manage_data', 'Can manage data'), ('impersonate', 'Can impersonate'), ('search', 'Can use search'), ('change_site_preferences', 'Can change site preferences'), ('change_person_preferences', 'Can change person preferences'), ('change_group_preferences', 'Can change group preferences')), + 'default_permissions': (), + 'permissions': (('view_system_status', 'Can view system status'), ('link_persons_accounts', 'Can link persos to accounts'), ('manage_data', 'Can manage data'), ('impersonate', 'Can impersonate'), ('search', 'Can use search'), ('change_site_preferences', 'Can change site preferences'), ('change_person_preferences', 'Can change person preferences'), ('change_group_preferences', 'Can change group preferences')), 'managed': False, }, ), diff --git a/aleksis/core/mixins.py b/aleksis/core/mixins.py index c91887a2248f4192970f46ed9701b9a8339b126c..865f4cf2a33557c841a6df9ad7df99bdf7277902 100644 --- a/aleksis/core/mixins.py +++ b/aleksis/core/mixins.py @@ -289,6 +289,7 @@ class GlobalPermissionModel(models.Model): This base model ensures that global permissions are not managed.""" class Meta: + default_permissions = () abstract = True managed = False