rename stock verbose
This commit is contained in:
parent
b063d18cf0
commit
174e62b316
2 changed files with 21 additions and 1 deletions
20
equipment/migrations/0010_auto_20180809_1211.py
Normal file
20
equipment/migrations/0010_auto_20180809_1211.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
# Generated by Django 1.11.11 on 2018-08-09 12:11
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('equipment', '0009_auto_20180809_1200'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='equipment',
|
||||||
|
name='stock',
|
||||||
|
field=models.PositiveSmallIntegerField(verbose_name='quantité totale'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -36,7 +36,7 @@ class Equipment(EventSpecificMixin, models.Model):
|
||||||
_("nom du matériel"),
|
_("nom du matériel"),
|
||||||
max_length=200,
|
max_length=200,
|
||||||
)
|
)
|
||||||
stock = models.PositiveSmallIntegerField(_("quantité disponible"))
|
stock = models.PositiveSmallIntegerField(_("quantité totale"))
|
||||||
description = models.TextField(_("description"))
|
description = models.TextField(_("description"))
|
||||||
activities = models.ManyToManyField(
|
activities = models.ManyToManyField(
|
||||||
Activity,
|
Activity,
|
||||||
|
|
Loading…
Add table
Reference in a new issue