From 14fa6259f3c327b1eed0c72965349bc22a8ee808 Mon Sep 17 00:00:00 2001 From: Ryan Noelk Date: Fri, 1 Mar 2019 15:07:45 +0100 Subject: [PATCH] fixing the models up (#26) --- v1/menu/migrations/0009_auto_20190301_1353.py | 23 +++++++++++++++++++ v1/news/migrations/0003_auto_20190301_1353.py | 17 ++++++++++++++ v1/news/models.py | 1 + 3 files changed, 41 insertions(+) create mode 100644 v1/menu/migrations/0009_auto_20190301_1353.py create mode 100644 v1/news/migrations/0003_auto_20190301_1353.py diff --git a/v1/menu/migrations/0009_auto_20190301_1353.py b/v1/menu/migrations/0009_auto_20190301_1353.py new file mode 100644 index 0000000..095d50f --- /dev/null +++ b/v1/menu/migrations/0009_auto_20190301_1353.py @@ -0,0 +1,23 @@ +# Generated by Django 2.1.7 on 2019-03-01 13:53 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('menu', '0008_auto_20181120_0041'), + ] + + operations = [ + migrations.AlterField( + model_name='menuitem', + name='all_day', + field=models.BooleanField(blank=True, default=False), + ), + migrations.AlterField( + model_name='menuitem', + name='complete', + field=models.BooleanField(blank=True, default=False), + ), + ] diff --git a/v1/news/migrations/0003_auto_20190301_1353.py b/v1/news/migrations/0003_auto_20190301_1353.py new file mode 100644 index 0000000..b0796a6 --- /dev/null +++ b/v1/news/migrations/0003_auto_20190301_1353.py @@ -0,0 +1,17 @@ +# Generated by Django 2.1.7 on 2019-03-01 13:53 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('news', '0002_auto_20161125_0846'), + ] + + operations = [ + migrations.AlterModelOptions( + name='news', + options={'ordering': ('pub_date',), 'verbose_name_plural': 'news'}, + ), + ] diff --git a/v1/news/models.py b/v1/news/models.py index 28bb87b..57acbd4 100644 --- a/v1/news/models.py +++ b/v1/news/models.py @@ -25,6 +25,7 @@ class News(models.Model): class Meta: ordering = ('pub_date',) + verbose_name_plural = "news" def __str__(self): return '%s' % self.title