2024-05-11 03:22:01 +00:00
|
|
|
# Generated by Django 4.1.13 on 2024-05-09 03:16
|
2018-11-13 07:57:44 +00:00
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
2024-05-11 03:22:01 +00:00
|
|
|
import django.db.models.deletion
|
2018-11-13 07:57:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2024-05-11 03:22:01 +00:00
|
|
|
initial = True
|
|
|
|
|
2018-11-13 07:57:44 +00:00
|
|
|
dependencies = [
|
2024-05-11 03:22:01 +00:00
|
|
|
('assets', '0002_auto_20180105_1807'),
|
2018-11-13 07:57:44 +00:00
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2024-05-11 03:22:01 +00:00
|
|
|
('users', '0001_initial'),
|
2018-11-13 07:57:44 +00:00
|
|
|
('perms', '0001_initial'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2024-05-11 03:22:01 +00:00
|
|
|
migrations.AddField(
|
|
|
|
model_name='userassetgrantedtreenoderelation',
|
|
|
|
name='user',
|
|
|
|
field=models.ForeignKey(db_constraint=False, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='assetpermission',
|
|
|
|
name='assets',
|
|
|
|
field=models.ManyToManyField(blank=True, related_name='granted_by_permissions', to='assets.asset', verbose_name='Asset'),
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='assetpermission',
|
|
|
|
name='nodes',
|
|
|
|
field=models.ManyToManyField(blank=True, related_name='granted_by_permissions', to='assets.node', verbose_name='Node'),
|
|
|
|
),
|
2018-11-13 07:57:44 +00:00
|
|
|
migrations.AddField(
|
|
|
|
model_name='assetpermission',
|
|
|
|
name='user_groups',
|
2024-05-11 03:22:01 +00:00
|
|
|
field=models.ManyToManyField(blank=True, related_name='%(class)ss', to='users.usergroup', verbose_name='User group'),
|
2018-11-13 07:57:44 +00:00
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='assetpermission',
|
|
|
|
name='users',
|
2024-05-11 03:22:01 +00:00
|
|
|
field=models.ManyToManyField(blank=True, related_name='%(class)ss', to=settings.AUTH_USER_MODEL, verbose_name='User'),
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name='assetpermission',
|
|
|
|
unique_together={('org_id', 'name')},
|
2018-11-13 07:57:44 +00:00
|
|
|
),
|
|
|
|
]
|