0084_role.py 892 Bytes
Newer Older
Charlie Jacomme's avatar
Charlie Jacomme committed
1 2 3 4 5 6 7 8 9 10 11
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2018-06-23 14:07
from __future__ import unicode_literals

from django.db import migrations, models
import re2o.mixins


class Migration(migrations.Migration):

    dependencies = [
12
        ('machines', '0083_remove_duplicate_rights'),
Charlie Jacomme's avatar
Charlie Jacomme committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
    ]

    operations = [
        migrations.CreateModel(
            name='Role',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('role_type', models.CharField(max_length=255, unique=True)),
                ('servers', models.ManyToManyField(to='machines.Interface')),
            ],
            options={
                'permissions': (('view_role', 'Peut voir un objet service'),),
            },
            bases=(re2o.mixins.RevMixin, re2o.mixins.AclMixin, models.Model),
        ),
    ]