From 49544f71db2a9fc2f914cd56cb746514970ed98b Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Fri, 13 Jul 2018 19:47:46 +0530 Subject: Update migrations to fix order error --- yaksh/migrations/0013_release_0_9_0.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'yaksh/migrations') diff --git a/yaksh/migrations/0013_release_0_9_0.py b/yaksh/migrations/0013_release_0_9_0.py index 3f7f377..f18070d 100644 --- a/yaksh/migrations/0013_release_0_9_0.py +++ b/yaksh/migrations/0013_release_0_9_0.py @@ -1,11 +1,10 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.10 on 2018-07-13 10:24 +# Generated by Django 1.10 on 2018-07-13 14:16 from __future__ import unicode_literals from django.db import migrations, models import yaksh.models - def set_is_moderator(apps, schema_editor): """ Set is_moderator to True for all users that belong to Moderator group """ @@ -17,7 +16,6 @@ def set_is_moderator(apps, schema_editor): prof.is_moderator = True prof.save() - class Migration(migrations.Migration): dependencies = [ @@ -40,9 +38,5 @@ class Migration(migrations.Migration): name='file', field=models.FileField(default=None, upload_to=yaksh.models.get_file_dir), ), - migrations.AlterUniqueTogether( - name='testcaseorder', - unique_together=set([('answer_paper', 'question', 'order')]), - ), migrations.RunPython(set_is_moderator), ] -- cgit