[WEI] Request bus size

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2021-08-25 23:26:57 +02:00
parent aa35724be2
commit 41a0b3a1c1
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
3 changed files with 254 additions and 245 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 2.2.19 on 2021-08-25 21:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wei', '0002_auto_20210313_1235'),
]
operations = [
migrations.AddField(
model_name='bus',
name='size',
field=models.IntegerField(default=50, verbose_name='seat count in the bus'),
),
]

View File

@ -66,6 +66,11 @@ class Bus(models.Model):
verbose_name=_("name"),
)
size = models.IntegerField(
verbose_name=_("seat count in the bus"),
default=50,
)
description = models.TextField(
blank=True,
default="",

File diff suppressed because it is too large Load Diff