#34653: Django (4.2.2) doesn't handle unicode characters in labels of choices
--------------------------------------+------------------------
Reporter: Stefanos | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 4.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------+------------------------
[In case it doesn't render correctly, the apostrophe in choices is unicode
character U+2019]
Consider the following model:
{{{
class Marks(models.Model):
CHOICES = [("apostrophe", "’")]
marks = models.CharField(max_length=10, choices=CHOICES)
}}}
every time that {{{django-admin makemigrations}}} is called a new
migration is created, because the autodetector detects that the field has
changed (old_field.choices, new_field.choices):
{{{
([('apostrophe', '`')], [('apostrophe', '’')])
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34653>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/01070188b7319736-741e7f6d-3b5a-46b5-8f28-d558e4098a49-000000%40eu-central-1.amazonses.com.