From fb1308e70c7c1b498e8f023e2fc6157ab574618c Mon Sep 17 00:00:00 2001 From: Qwann Date: Mon, 20 Aug 2018 13:24:47 +0200 Subject: [PATCH] add migrations --- .../migrations/0012_auto_20180820_1124.py | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 equipment/migrations/0012_auto_20180820_1124.py diff --git a/equipment/migrations/0012_auto_20180820_1124.py b/equipment/migrations/0012_auto_20180820_1124.py new file mode 100644 index 0000000..45afd5d --- /dev/null +++ b/equipment/migrations/0012_auto_20180820_1124.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.11 on 2018-08-20 11:24 +from __future__ import unicode_literals + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('equipment', '0011_auto_20180809_1405'), + ] + + operations = [ + migrations.AlterField( + model_name='equipment', + name='category', + field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='equipment.EquipmentCategory', verbose_name='catégorie'), + ), + migrations.AlterField( + model_name='equipment', + name='owner', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='auth.Group', verbose_name='propriétaire'), + ), + migrations.AlterField( + model_name='equipmentattributevalue', + name='attribute', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='equipment.EquipmentAttribute', verbose_name='attribut'), + ), + migrations.AlterField( + model_name='equipmentattributevalue', + name='equipment', + field=models.ForeignKey(help_text='Matériel concerné par le defaut', on_delete=django.db.models.deletion.CASCADE, related_name='attributes', to='equipment.Equipment', verbose_name='matériel'), + ), + migrations.AlterField( + model_name='equipmentattribution', + name='equipment', + field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='equipment.Equipment', verbose_name='matériel'), + ), + migrations.AlterField( + model_name='equipmentcategory', + name='parent', + field=models.ForeignKey(blank=True, default=None, help_text='merci de ne pas faire de référence cyclique', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='equipment.EquipmentCategory', verbose_name='parent'), + ), + migrations.AlterField( + model_name='equipmentdefault', + name='equipment', + field=models.ForeignKey(help_text='Matériel concerné par le defaut', on_delete=django.db.models.deletion.CASCADE, related_name='remarks', to='equipment.Equipment', verbose_name='matériel'), + ), + migrations.AlterField( + model_name='equipmentlost', + name='equipment', + field=models.ForeignKey(help_text='Matériel concerné par la perte', on_delete=django.db.models.deletion.CASCADE, related_name='losts', to='equipment.Equipment', verbose_name='matériel'), + ), + migrations.AlterField( + model_name='equipmentrevision', + name='equipment', + field=models.ForeignKey(help_text='Matériel concerné par les révisions', on_delete=django.db.models.deletion.CASCADE, related_name='revisions', to='equipment.Equipment', verbose_name='matériel'), + ), + ]