Rename fields. Close #3

This commit is contained in:
Gabriel Augendre 2018-05-30 18:01:26 +02:00
parent 8828b8e7b7
commit eb88c5d4af
2 changed files with 25 additions and 2 deletions

View file

@ -0,0 +1,23 @@
# Generated by Django 2.0.5 on 2018-05-30 16:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manuels', '0015_auto_20180524_0035'),
]
operations = [
migrations.AlterField(
model_name='book',
name='field',
field=models.CharField(max_length=200, verbose_name='discipline'),
),
migrations.AlterField(
model_name='suppliesrequirement',
name='fields',
field=models.TextField(verbose_name='disciplines'),
),
]

View file

@ -109,7 +109,7 @@ class Book(BaseModel):
teacher = models.ForeignKey(verbose_name='enseignant', to=Teacher, on_delete=models.PROTECT, null=True) 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) level = models.ForeignKey(verbose_name='classe', to=Level, on_delete=models.PROTECT, null=True)
field = models.CharField('matière', max_length=200) field = models.CharField('discipline', max_length=200)
title = models.TextField('titre') title = models.TextField('titre')
authors = models.TextField('auteurs') authors = models.TextField('auteurs')
editor = models.ForeignKey(verbose_name='éditeur', to=Editor, on_delete=models.PROTECT, null=True) editor = models.ForeignKey(verbose_name='éditeur', to=Editor, on_delete=models.PROTECT, null=True)
@ -151,7 +151,7 @@ class SuppliesRequirement(BaseModel):
teacher = models.ForeignKey(verbose_name='enseignant', to=Teacher, on_delete=models.PROTECT, null=True) 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) level = models.ForeignKey(verbose_name='classe', to=Level, on_delete=models.PROTECT, null=True)
fields = models.TextField('matières') fields = models.TextField('disciplines')
supplies = models.TextField('fournitures') supplies = models.TextField('fournitures')
def __str__(self): def __str__(self):