sdelements/django-security

Remove bytes from migrations

rahulkatragadda opened this issue · 3 comments

In the latest Django 1.8 + it is not necessary to pass strings as byte arrays in migrations.

This appears to be a legacy code. And because of this, Django's checks for migrations identifies that migrations need to be created, where in fact nothing has changed.

I've hit this issue too. @rahulkatragadda solution works for me, tested also on python 2.
Another option is to generate those migrations under python 3 (or with unicode literals import in models.py under python 2)

@Gee19 can you take a look when you have a sec.

Gee19 commented

Thanks 👍