mirror of
https://github.com/jazzband/django-categories.git
synced 2026-03-16 22:30:24 +00:00
b'' doesn't work under Python 3 in a migration file
This commit is contained in:
parent
1deb79f75b
commit
6e54f1635d
1 changed files with 6 additions and 6 deletions
|
|
@ -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')),
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue