summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-12 18:43:16 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-11-12 18:43:16 +0100
commit1e0ca1529f9d03acfbc26a0573c59e9ab6a327f1 (patch)
tree5cb6a189f1e6ac8ec9f37dd8c473ccffe24c1997
parentadecc5c8c38daac40f121371665a13555de7d333 (diff)
downloadIshtar-1e0ca1529f9d03acfbc26a0573c59e9ab6a327f1.tar.bz2
Ishtar-1e0ca1529f9d03acfbc26a0573c59e9ab6a327f1.zip
Ref is not mandatory for container type
-rw-r--r--archaeological_warehouse/migrations/0025_auto_20181112_1842.py20
-rw-r--r--archaeological_warehouse/models.py3
2 files changed, 22 insertions, 1 deletions
diff --git a/archaeological_warehouse/migrations/0025_auto_20181112_1842.py b/archaeological_warehouse/migrations/0025_auto_20181112_1842.py
new file mode 100644
index 000000000..174ed9a48
--- /dev/null
+++ b/archaeological_warehouse/migrations/0025_auto_20181112_1842.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.10 on 2018-11-12 18:42
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('archaeological_warehouse', '0024_auto_20181017_1854'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='containertype',
+ name='reference',
+ field=models.CharField(blank=True, max_length=300, null=True, verbose_name='Ref.'),
+ ),
+ ]
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py
index a40bfd321..5565bc504 100644
--- a/archaeological_warehouse/models.py
+++ b/archaeological_warehouse/models.py
@@ -298,7 +298,8 @@ class ContainerType(GeneralType):
width = models.IntegerField(_(u"Width (mm)"), blank=True, null=True)
height = models.IntegerField(_(u"Height (mm)"), blank=True, null=True)
volume = models.FloatField(_(u"Volume (l)"), blank=True, null=True)
- reference = models.CharField(_(u"Ref."), max_length=30)
+ reference = models.CharField(_(u"Ref."), max_length=300, blank=True,
+ null=True)
class Meta:
verbose_name = _(u"Container type")