Skip to content

Commit

Permalink
b'' doesn't work under Python 3 in a migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
epicserve committed Feb 11, 2016
1 parent 1deb79f commit 6e54f16
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions categories/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand All @@ -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')),
],
Expand Down

0 comments on commit 6e54f16

Please sign in to comment.