aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/migrations
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-10-04 13:18:51 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2017-10-04 13:28:24 +1300
commitf7950b885c87d505a85e9f467b27f5b55e0ee6c5 (patch)
treeb0521e8ad6311c92644f443f7d8b316831c602e5 /layerindex/migrations
parent36d315972bb817152988931421f845a68b679953 (diff)
downloadopenembedded-core-contrib-f7950b885c87d505a85e9f467b27f5b55e0ee6c5.tar.gz
models: allow LayerBranch.collection to be blank
It's really irritating to be forced to specify a value for this field especially as it'll get auto-populated by the update script. Set blank=True to allow that. While we're at it, touch up the description a bit to make more sense. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/migrations')
-rw-r--r--layerindex/migrations/0009_layerbranch_collection.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/layerindex/migrations/0009_layerbranch_collection.py b/layerindex/migrations/0009_layerbranch_collection.py
new file mode 100644
index 0000000000..bf6276f5da
--- /dev/null
+++ b/layerindex/migrations/0009_layerbranch_collection.py
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('layerindex', '0008_yp_compatible'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='layerbranch',
+ name='collection',
+ field=models.CharField(help_text='Name of the collection that the layer provides for the purpose of expressing dependencies (as specified in BBFILE_COLLECTIONS). Can only contain letters, numbers and dashes.', max_length=40, blank=True, null=True, verbose_name='Layer Collection'),
+ ),
+ ]