]> git.0d.be Git - django-panik-combo.git/commitdiff
add title attribute to sounds cell
authorFrédéric Péters <fpeters@0d.be>
Sat, 21 Nov 2020 13:47:17 +0000 (14:47 +0100)
committerFrédéric Péters <fpeters@0d.be>
Sat, 21 Nov 2020 13:47:17 +0000 (14:47 +0100)
panikombo/migrations/0017_soundscell_title.py [new file with mode: 0644]
panikombo/models.py

diff --git a/panikombo/migrations/0017_soundscell_title.py b/panikombo/migrations/0017_soundscell_title.py
new file mode 100644 (file)
index 0000000..e8fdca9
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.29 on 2020-11-21 14:33
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('panikombo', '0016_soundscell'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='soundscell',
+            name='title',
+            field=models.CharField(blank=True, max_length=150, verbose_name='Title'),
+        ),
+    ]
index d5419216d85aa8c49de12cb6a874ce27e4da1028..26a8d2a8c3c02c0fafd486dd504c724c313953f0 100644 (file)
@@ -225,6 +225,7 @@ class ItemTopik(models.Model):
 
 @register_cell_class
 class SoundsCell(CellBase):
+    title = models.CharField(_('Title'), max_length=150, blank=True)
     include_search_input = models.BooleanField(_('Include search input'), default=True)
     include_fragments = models.BooleanField(_('Include fragments'), default=True)
     limit_to_focus = models.BooleanField(_('Limit to focused elements'), default=False)