diff --git a/courses/migrations/0002_auto_20180218_1910.py b/courses/migrations/0002_auto_20180218_1910.py new file mode 100644 index 0000000..adb7d2e --- /dev/null +++ b/courses/migrations/0002_auto_20180218_1910.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.6 on 2018-02-18 19:10 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('courses', '0001_initial'), + ] + + operations = [ + migrations.AlterModelOptions( + name='topic', + options={'ordering': ('sort',), 'verbose_name': 'Тема', 'verbose_name_plural': 'Темы'}, + ), + ] diff --git a/courses/models.py b/courses/models.py index c45ee96..7d52c36 100755 --- a/courses/models.py +++ b/courses/models.py @@ -63,6 +63,7 @@ class Topic(models.Model): class Meta: verbose_name = "Тема" verbose_name_plural = "Темы" + ordering = ('sort',) class CourseManager(models.Manager):