* ui_ux: => 0
* easy: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/9586#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by aaugustin):
Yes, the `url` method should apply `iri_to_uri`. (I haven't verified that
the issue is still valid.)
--
Ticket URL: <https://code.djangoproject.com/ticket/9586#comment:7>
* needs_better_patch: 0 => 1
* has_patch: 0 => 1
* needs_tests: 0 => 1
* easy: 0 => 1
* stage: Design decision needed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/9586#comment:8>
* status: new => assigned
* owner: nobody => susan
--
Ticket URL: <https://code.djangoproject.com/ticket/9586#comment:9>
* owner: susan =>
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/9586#comment:10>
* easy: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/9586#comment:11>
Comment (by anonymous):
Hi I just stumbled over this problem using Django 1.6.4 on windows.
Is there any idea when this bug will be fixed,
or is there a "howto" somewhere?
--
Ticket URL: <https://code.djangoproject.com/ticket/9586#comment:12>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
Comment:
Looks like this was fixed by #25905 - I cannot reproduce the original
issue. I haven't tested on Windows though.
`models.py`:
{{{
#!python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
def upload_to(instance, filename):
return 'Großköln / €/{}'.format(filename)
class FileModel(models.Model):
file = models.FileField(upload_to=upload_to)
}}}
`admin.py`
{{{
#!python
from django.contrib import admin
from .models import FileModel
admin.site.register(FileModel)
}}}
and the rest is the standard media/staticfiles settings/urls.
The url presented to me in the admin:
`<a href="/media/Gro%C3%9Fk%C3%B6ln%20/%20%E2%82%AC/mail.txt">Großköln /
€/mail.txt</a>`
which is properly escaped and served by django.
--
Ticket URL: <https://code.djangoproject.com/ticket/9586#comment:13>
* status: new => closed
* resolution: => fixed
--
Ticket URL: <https://code.djangoproject.com/ticket/9586#comment:14>