Parcourir la source

champs de note sur les allocations

Élie Bouttier il y a 8 ans
Parent
commit
7b9a685390

+ 19 - 0
services/migrations/0015_auto_20170507_0219.py

@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11 on 2017-05-07 00:19
+from __future__ import unicode_literals
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('services', '0014_ipresource_reserved'),
+    ]
+
+    operations = [
+        migrations.AlterModelOptions(
+            name='ipresource',
+            options={'ordering': ['ip'], 'verbose_name': 'ressource IP', 'verbose_name_plural': 'ressources IP'},
+        ),
+    ]

+ 20 - 0
services/migrations/0016_resourceallocation_notes.py

@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11 on 2017-05-07 14:10
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('services', '0015_auto_20170507_0219'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='resourceallocation',
+            name='notes',
+            field=models.TextField(blank=True, default=''),
+        ),
+    ]

+ 1 - 0
services/models.py

@@ -113,6 +113,7 @@ class ResourceAllocation(models.Model):
     service = models.ForeignKey(Service, related_name='allocations', related_query_name='allocation')
     start = models.DateTimeField(verbose_name='Début de la période d’allocation', default=timezone.now)
     end = models.DateTimeField(null=True, blank=True, verbose_name='Fin de la période d’allocation')
+    notes = models.TextField(blank=True, default='')
 
     @property
     def active(self):