Skip to content

Commit

Permalink
fixing the models up (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanNoelk authored Mar 1, 2019
1 parent 48aed70 commit 14fa625
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
23 changes: 23 additions & 0 deletions v1/menu/migrations/0009_auto_20190301_1353.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
17 changes: 17 additions & 0 deletions v1/news/migrations/0003_auto_20190301_1353.py
Original file line number Diff line number Diff line change
@@ -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'},
),
]
1 change: 1 addition & 0 deletions v1/news/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class News(models.Model):

class Meta:
ordering = ('pub_date',)
verbose_name_plural = "news"

def __str__(self):
return '%s' % self.title

0 comments on commit 14fa625

Please sign in to comment.