mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Implement generic right checking for any View with the right parents
This commit is contained in:
23
core/migrations/0008_auto_20151127_1007.py
Normal file
23
core/migrations/0008_auto_20151127_1007.py
Normal file
@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0007_auto_20151126_1613'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='page',
|
||||
name='view_group',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='page',
|
||||
name='view_group',
|
||||
field=models.ManyToManyField(default=1, to='core.Group', related_name='viewable_pages'),
|
||||
),
|
||||
]
|
23
core/migrations/0009_auto_20151127_1007.py
Normal file
23
core/migrations/0009_auto_20151127_1007.py
Normal file
@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0008_auto_20151127_1007'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='page',
|
||||
name='edit_group',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='page',
|
||||
name='edit_group',
|
||||
field=models.ManyToManyField(to='core.Group', related_name='editable_pages', default=1),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user