diff --git a/sledilnik/faq/migrations/0014_auto_20211126_1941.py b/sledilnik/faq/migrations/0014_auto_20211126_1941.py new file mode 100644 index 0000000..d0b36c3 --- /dev/null +++ b/sledilnik/faq/migrations/0014_auto_20211126_1941.py @@ -0,0 +1,23 @@ +# Generated by Django 3.1.7 on 2021-11-26 18:41 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('faq', '0013_auto_20211126_1933'), + ] + + operations = [ + migrations.AddField( + model_name='project', + name='name_en', + field=models.CharField(max_length=100, null=True, unique=True, verbose_name='Name'), + ), + migrations.AddField( + model_name='project', + name='name_sl', + field=models.CharField(max_length=100, null=True, unique=True, verbose_name='Name'), + ), + ] diff --git a/sledilnik/faq/translation.py b/sledilnik/faq/translation.py index 8945e73..b0e93df 100644 --- a/sledilnik/faq/translation.py +++ b/sledilnik/faq/translation.py @@ -4,7 +4,7 @@ @register(models.Project) class ProjectTranslationOptions(TranslationOptions): - fields = [] + fields = ["name"] @register(models.Faq)