Skip to content

Commit

Permalink
Changing prefix from b to u in migration files to fix type mismatch (#40
Browse files Browse the repository at this point in the history
)

* Changing prefix from b to u in migration files to fix type mismatch
	-The 'b' prefix before strings in migration files causes issues in python3
        - this commit replaces 'b' prefix with 'u' in migration files and adds 'u' prefix in relevant places in model.py
        - this should not cause any issues in python 2

* Update version in __init__.py 

Getting things ready for new patch release
  • Loading branch information
jinder1s authored Nov 1, 2019
1 parent afd561e commit b35082a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion milestones/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"""
from __future__ import unicode_literals

__version__ = '0.2.3'
__version__ = '0.2.4'
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='coursecontentmilestone',
name='requirements',
field=models.CharField(help_text=b'Stores JSON data required to determine milestone fulfillment', max_length=255, null=True, blank=True),
field=models.CharField(help_text=u'Stores JSON data required to determine milestone fulfillment', max_length=255, null=True, blank=True),
),
]
2 changes: 1 addition & 1 deletion milestones/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class CourseContentMilestone(TimeStampedModel):
max_length=255,
blank=True,
null=True,
help_text="Stores JSON data required to determine milestone fulfillment"
help_text=u"Stores JSON data required to determine milestone fulfillment"
)
active = models.BooleanField(default=True, db_index=True)

Expand Down

0 comments on commit b35082a

Please sign in to comment.