Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

location field + django suit = triggers suits confirm modified form popup window #52

Closed
dteskera opened this issue May 2, 2016 · 2 comments

Comments

@dteskera
Copy link

dteskera commented May 2, 2016

if you try to leave admin detail view of a model that has a location field in it, even if you didn't changed anything, suit brings a popup windows with a message "You have unsaved changes." are you sure you want to leave this page?

this happens when location field has lat or lng value that ends with zero(s)
e.g. 45.801820,16.0506820

in widgets.py i have changed lines 25:34 with these to fix this issue.

                if not isinstance(value, six.string_types):
                    lng = value.x
                    lat = value.y
                    value = '%s,%s' % (
                        float(lat),
                        float(lng),
                    )
@SalahAdDin
Copy link

Happen this bug with django-jet also?

@caioariede
Copy link
Owner

Did you confirm this issue isn't something specific to django suit? Please reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants