Open eduardocesar opened 6 years ago
@eduardocesar can you reproduce with latest master version?
@eduardocesar I can confirm this problem, but when trying to fix it I found it is not a one-liner, so this would have to wait until a major release.
Resolution news?
You MUST use this template when reporting issues. Please make sure you follow the checklist and fill in all of the information sections below.
All versions of django-smart-selects prior to version 1.2.8 are vulnerable to an XSS attack as detailed in issue 171. As a result, all previous versions have been removed from PyPI to prevent users from installing insecure versions. All users are urged to upgrade as soon as possible.
Checklist
Put an
x
in the bracket when you have completed each task, like this:[x]
master
branch of django-smart-selects.smart_selects
app.models.py
,forms.py
, andviews.py
with problems.Steps to reproduce
Actual behavior
After defining label_from_instance, the rendered value doesn't show
Expected behavior
The returned value from label_from_instance should be rendered
Relevant Django docs section: https://docs.djangoproject.com/en/1.11/ref/forms/fields/#modelchoicefield
forms.py
models.py