Skip to content
Snippets Groups Projects
Verified Commit ca53e6c9 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Add migration to ensure that all permissions are created

parent e268b78f
No related branches found
No related tags found
1 merge request!130Resolve "[Week view] Admin can see only their own person in teacher select"
Pipeline #5406 passed
# Generated by Django 3.1.5 on 2021-01-21 14:55
import django.contrib.sites.managers
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('alsijil', '0007_personal_note_lesson_documentation_year'),
]
operations = [
migrations.CreateModel(
name='AlsijilGlobalPermissions',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('extended_data', models.JSONField(default=dict, editable=False)),
],
options={
'permissions': (('view_week', 'Can view week overview'), ('register_absence', 'Can register absence'), ('list_personal_note_filters', 'Can list all personal note filters')),
'managed': False,
},
managers=[
('objects', django.contrib.sites.managers.CurrentSiteManager()),
],
),
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment