Skip to content
Snippets Groups Projects
Commit c0db6927 authored by Jan Maximilian Michal's avatar Jan Maximilian Michal
Browse files

Hotfix: ordering of submissions is now always based on type name

parent 38c6162f
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-07-13 12:20
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0014_auto_20170712_1704'),
]
operations = [
migrations.AlterModelOptions(
name='submission',
options={'ordering': ('type__name',), 'verbose_name': 'Submission', 'verbose_name_plural': 'Submission Set'},
),
]
......@@ -225,6 +225,7 @@ class Submission(models.Model):
verbose_name = "Submission"
verbose_name_plural = "Submission Set"
unique_together = (('type', 'student'),)
ordering = ('type__name',)
def __str__(self):
return "Submission of type '{}' from Student '{}'".format(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment