#24741: UnicodeDecodeError in gettext via migrations autodetector
----------------------------+--------------------------------------
Reporter: drakkan | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 1.8
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------
Comment (by drakkan):
I think you can reproduce with a models like this
{{{
# -*- coding: utf-8 -*-
from django.db import models
#from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext as _
IMAGE_ROTATION = (
(0,_("None")),
(90,_("90 °")),
(180,_("180 °")),
(270,_("270 °")),
)
class TestModel(models.Model):
rotations =
models.SmallIntegerField(choices=IMAGE_ROTATION,default=0)
}}}
makemigration fails, in my project migrations was done with 1.7 version
--
Ticket URL: <https://code.djangoproject.com/ticket/24741#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.c35eefd87060077babce9817aabd910c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.