Closed josefnorlin closed 3 years ago
@tuxedojoe these PRs should fix it https://github.com/digi604/django-smart-selects/pull/260 and https://github.com/digi604/django-smart-selects/pull/259 cc: @blag
@josefnorlin can you reproduce with latest master version?
Closing due to inactivity
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
Add form works seamlessly. But when using edit with the same form and smart selects the values from the database gets loaded but then resets to "Choose county" and "Choose municipality".
Expected behavior
The posts value for 'county' and 'municipality' stays to what they are set to in the database.
Here's my code:
models.py
views.py
forms.py
edit.html