summaryrefslogtreecommitdiff
path: root/archaeological_warehouse
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_warehouse')
-rw-r--r--archaeological_warehouse/migrations/0015_auto_20180315_1000.py35
-rw-r--r--archaeological_warehouse/models.py11
2 files changed, 40 insertions, 6 deletions
diff --git a/archaeological_warehouse/migrations/0015_auto_20180315_1000.py b/archaeological_warehouse/migrations/0015_auto_20180315_1000.py
new file mode 100644
index 000000000..81c3189c4
--- /dev/null
+++ b/archaeological_warehouse/migrations/0015_auto_20180315_1000.py
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.10 on 2018-03-15 10:00
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('archaeological_warehouse', '0014_auto_20180228_1741'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='container',
+ name='cached_label',
+ field=models.TextField(blank=True, db_index=True, null=True, verbose_name='Localisation'),
+ ),
+ migrations.AlterField(
+ model_name='container',
+ name='cached_location',
+ field=models.TextField(blank=True, db_index=True, null=True, verbose_name='Cached location'),
+ ),
+ migrations.AlterField(
+ model_name='container',
+ name='old_reference',
+ field=models.TextField(blank=True, null=True, verbose_name='Old reference'),
+ ),
+ migrations.AlterField(
+ model_name='container',
+ name='reference',
+ field=models.TextField(verbose_name='Container ref.'),
+ ),
+ ]
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py
index 68f5181b7..33646ef9b 100644
--- a/archaeological_warehouse/models.py
+++ b/archaeological_warehouse/models.py
@@ -297,15 +297,14 @@ class Container(LightHistorizedItem, ImageModel):
related_name='owned_containers')
container_type = models.ForeignKey(ContainerType,
verbose_name=_("Container type"))
- reference = models.CharField(_(u"Container ref."), max_length=200)
+ reference = models.TextField(_(u"Container ref."))
comment = models.TextField(_(u"Comment"), null=True, blank=True)
- cached_label = models.CharField(_(u"Localisation"), max_length=500,
- null=True, blank=True, db_index=True)
- cached_location = models.CharField(_(u"Cached location"), max_length=500,
+ cached_label = models.TextField(_(u"Localisation"), null=True, blank=True,
+ db_index=True)
+ cached_location = models.TextField(_(u"Cached location"),
null=True, blank=True, db_index=True)
index = models.IntegerField(u"Container ID", default=0)
- old_reference = models.CharField(_(u"Old reference"), max_length=200,
- blank=True, null=True)
+ old_reference = models.TextField(_(u"Old reference"), blank=True, null=True)
external_id = models.TextField(_(u"External ID"), blank=True, null=True)
auto_external_id = models.BooleanField(
_(u"External ID is set automatically"), default=False)