From 6e54f1635de30cdd7549445d8c5bbe648d3b5d74 Mon Sep 17 00:00:00 2001 From: Brent O'Connor Date: Thu, 11 Feb 2016 14:53:20 -0600 Subject: [PATCH] b'' doesn't work under Python 3 in a migration file --- categories/migrations/0001_initial.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/categories/migrations/0001_initial.py b/categories/migrations/0001_initial.py index e4e1c59..ffd6beb 100644 --- a/categories/migrations/0001_initial.py +++ b/categories/migrations/0001_initial.py @@ -20,15 +20,15 @@ class Migration(migrations.Migration): ('name', models.CharField(max_length=100, verbose_name='name')), ('slug', models.SlugField(verbose_name='slug')), ('active', models.BooleanField(default=True, verbose_name='active')), - ('thumbnail', models.FileField(storage=django.core.files.storage.FileSystemStorage(), null=True, upload_to=b'uploads/categories/thumbnails', blank=True)), + ('thumbnail', models.FileField(storage=django.core.files.storage.FileSystemStorage(), null=True, upload_to='uploads/categories/thumbnails', blank=True)), ('thumbnail_width', models.IntegerField(null=True, blank=True)), ('thumbnail_height', models.IntegerField(null=True, blank=True)), ('order', models.IntegerField(default=0)), - ('alternate_title', models.CharField(default=b'', help_text=b'An alternative title to use on pages with this category.', max_length=100, blank=True)), - ('alternate_url', models.CharField(help_text=b'An alternative URL to use instead of the one derived from the category hierarchy.', max_length=200, blank=True)), + ('alternate_title', models.CharField(default='', help_text='An alternative title to use on pages with this category.', max_length=100, blank=True)), + ('alternate_url', models.CharField(help_text='An alternative URL to use instead of the one derived from the category hierarchy.', max_length=200, blank=True)), ('description', models.TextField(null=True, blank=True)), - ('meta_keywords', models.CharField(default=b'', help_text=b'Comma-separated keywords for search engines.', max_length=255, blank=True)), - ('meta_extra', models.TextField(default=b'', help_text=b'(Advanced) Any additional HTML to be placed verbatim in the <head>', blank=True)), + ('meta_keywords', models.CharField(default='', help_text='Comma-separated keywords for search engines.', max_length=255, blank=True)), + ('meta_extra', models.TextField(default='', help_text='(Advanced) Any additional HTML to be placed verbatim in the <head>', blank=True)), ('lft', models.PositiveIntegerField(editable=False, db_index=True)), ('rght', models.PositiveIntegerField(editable=False, db_index=True)), ('tree_id', models.PositiveIntegerField(editable=False, db_index=True)), @@ -47,7 +47,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('object_id', models.PositiveIntegerField(verbose_name='object id')), - ('relation_type', models.CharField(help_text="A generic text field to tag a relation, like 'leadphoto'.", max_length=b'200', null=True, verbose_name='relation type', blank=True)), + ('relation_type', models.CharField(help_text="A generic text field to tag a relation, like 'leadphoto'.", max_length='200', null=True, verbose_name='relation type', blank=True)), ('category', models.ForeignKey(verbose_name='category', to='categories.Category')), ('content_type', models.ForeignKey(verbose_name='content type', to='contenttypes.ContentType')), ],