Commit 8bbe8afe authored by Gabriel Detraz's avatar Gabriel Detraz

Migrations des prises

parent 70995ba7
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Prise',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('batiment', models.CharField(max_length=1)),
('chambre', models.CharField(max_length=4)),
('prise_crans', models.IntegerField(null=True, blank=True)),
('prise_crous', models.IntegerField(null=True, blank=True)),
('crans', models.BooleanField(default=True)),
('crous', models.BooleanField(default=False)),
('commentaire', models.CharField(max_length=1024, null=True, blank=True)),
('cablage_effectue', models.BooleanField(default=True)),
],
options={
'ordering': ['batiment', 'chambre'],
'permissions': (('can_view', 'Peut visualiser les prises'), ('can_change', 'Peut modifier les prises'), ('can_validate', 'Peut valider les c\xe2blages')),
},
bases=(models.Model,),
),
migrations.CreateModel(
name='PriseAutorise',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('aid', models.IntegerField()),
('commentaire', models.CharField(max_length=1024, null=True, blank=True)),
('prise', models.ForeignKey(to='prises.Prise')),
],
options={
},
bases=(models.Model,),
),
migrations.AlterUniqueTogether(
name='priseautorise',
unique_together=set([('prise', 'aid')]),
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('prises', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='prise',
name='has_radius',
field=models.BooleanField(default=True),
preserve_default=True,
),
migrations.AddField(
model_name='prise',
name='public',
field=models.BooleanField(default=True),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('prises', '0002_auto_20170130_2029'),
]
operations = [
migrations.AlterField(
model_name='prise',
name='public',
field=models.BooleanField(default=False),
preserve_default=True,
),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment