Commit ae02d466 authored by fred's avatar fred

order diffusions chronologically by default

parent f650277f
# -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2020-03-29 15:19
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('emissions', '0013_category_itunes_category'),
]
operations = [
migrations.AlterModelOptions(
name='diffusion',
options={'ordering': ['datetime'], 'verbose_name': 'Diffusion', 'verbose_name_plural': 'Diffusions'},
),
]
......@@ -416,6 +416,7 @@ class Diffusion(models.Model, WeekdayMixin):
class Meta:
verbose_name = _('Diffusion')
verbose_name_plural = _('Diffusions')
ordering = ['datetime']
episode = models.ForeignKey('Episode', verbose_name=_('Episode'))
datetime = models.DateTimeField(_('Date/time'), db_index=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment