Closed vstoykov closed 8 years ago
I have been unable to reproduce this. Can you let me know what version of Django, Django-CMS, and Python you are using?
Sorry for the delay.
Python 3.4
Django==1.8.4 django-cms==3.1.3
Actually now I look at generated code for both fields in Initial migration and my migration. The only difference is that in the initial migration some of the strings are marked as bytestrings.
In 0001-initial.py:
models.ImageField(upload_to=b'news_images')
In my:
models.ImageField(upload_to='news_images')
The same is for SlugField
but for unique_for_date
argument.
Probably my PR is not necessary, and initial migration need to be fixed to use string and not bytestring.
Django's
manage.py makemigrations
will automaically create this migration. Probably is missed somewhere down the road.