Add field for supplies

This commit is contained in:
Gabriel Augendre 2018-05-22 18:46:49 +02:00
parent 35d7056c17
commit c0a1d0cbd7
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,19 @@
# Generated by Django 2.0.5 on 2018-05-22 16:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manuels', '0008_auto_20180522_1051'),
]
operations = [
migrations.AddField(
model_name='suppliesrequirement',
name='field',
field=models.CharField(default='', max_length=100, verbose_name='matière'),
preserve_default=False,
),
]

View file

@ -132,6 +132,7 @@ class SuppliesRequirement(BaseModel):
teacher = models.ForeignKey(verbose_name='enseignant', to=Teacher, on_delete=models.PROTECT, null=True)
level = models.ForeignKey(verbose_name='classe', to=Level, on_delete=models.PROTECT, null=True)
field = models.CharField('matière', max_length=100)
supplies = models.TextField('fournitures')
def __str__(self):