summaryrefslogtreecommitdiff
path: root/program/migrations/0012_add_language.py
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2021-02-17 17:50:37 (GMT)
committerChristian Pointner <equinox@helsinki.at>2021-02-17 17:50:37 (GMT)
commitaafc069b9d6945138c2c2de1228f1a52c22d3c40 (patch)
treed9e6d23fd7a10d66d41c59d8e055053d7b5df72c /program/migrations/0012_add_language.py
parent8fa0d03d3509290ea6f523c2223966b1a2b73488 (diff)
fix model for new language field and add language filter to show list template
Diffstat (limited to 'program/migrations/0012_add_language.py')
-rw-r--r--program/migrations/0012_add_language.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/migrations/0012_add_language.py b/program/migrations/0012_add_language.py
index 59be77d..21d3c4f 100644
--- a/program/migrations/0012_add_language.py
+++ b/program/migrations/0012_add_language.py
@@ -15,7 +15,8 @@ class Migration(migrations.Migration):
name='Language',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
- ('name', models.CharField(max_length=32, verbose_name='Language')),
+ ('slug', models.SlugField(unique=True, max_length=32, verbose_name='Slug')),
+ ('name', models.CharField(max_length=32, verbose_name='Name')),
('native_name', models.CharField(max_length=32, verbose_name='Native Name')),
],
options={