mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-26 18:37:12 +00:00
[WEI] Request bus size
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
aa35724be2
commit
41a0b3a1c1
18
apps/wei/migrations/0003_bus_size.py
Normal file
18
apps/wei/migrations/0003_bus_size.py
Normal 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'),
|
||||
),
|
||||
]
|
@ -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
Loading…
Reference in New Issue
Block a user