Fix errors when running runserver in python 3.

- The fields need to be unicode not bytes.  In python 2 it was auto
converting.
- The static url base has been allowed to be a unicode string for a
while.
This commit is contained in:
Feanil Patel
2019-09-03 09:08:17 -04:00
parent f1f6d2b257
commit ca9cfb128c
3 changed files with 3 additions and 5 deletions

View File

@@ -14,6 +14,6 @@ class Migration(migrations.Migration):
operations = [
migrations.AddIndex(
model_name='courseenrollment',
index=models.Index(fields=[b'user', b'-created'], name='student_cou_user_id_b19dcd_idx'),
index=models.Index(fields=['user', '-created'], name='student_cou_user_id_b19dcd_idx'),
),
]