From 3e9890945871c9e650a00d2d6beb562944757d80 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 5 Jan 2011 14:00:59 +0100 Subject: [PATCH] fix buggy sort_key migration --- apps/catalogue/migrations/0004_auto__chg_field_tag_sort_key.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/catalogue/migrations/0004_auto__chg_field_tag_sort_key.py b/apps/catalogue/migrations/0004_auto__chg_field_tag_sort_key.py index b4eac048e..557158ac5 100644 --- a/apps/catalogue/migrations/0004_auto__chg_field_tag_sort_key.py +++ b/apps/catalogue/migrations/0004_auto__chg_field_tag_sort_key.py @@ -12,7 +12,7 @@ class Migration(SchemaMigration): db.alter_column('catalogue_tag', 'sort_key', self.gf('django.db.models.fields.CharField')(max_length=120)) if not db.dry_run: - for tag in orm.Tag.objects.exclude(category=('set', 'author')): + for tag in orm.Tag.objects.exclude(category__in=('set', 'author')): tag.sort_key = tag.name.lower() tag.save() for tag in orm.Tag.objects.filter(category='author'): -- 2.20.1