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

Use different function name for dismissing "add" popup when necessary #75

Merged

Commits on Apr 21, 2016

  1. Use different function name for dismissing "add" popup when necessary

    Django 1.8 introduced a change of the function name from
    `dismissAddAnotherPopup` to `dismissAddRelatedObjectPopup`. Old name was
    kept for backwards compatibility, but since it's value is now a
    reference and not an actual function, sortedm2m overrides only that
    reference and not the actual `dismissAddRelatedObjectPopup` which is
    now the function being called in
    `django/contrib/admin/templates/admin/popup_response.html`. Since django
    no longer calls the overridden function, the added object would only
    appear after refresh.
    
    Ref: django/django@0798874#diff-ec17958cc9f7c2542303557dfc4ad997R130
    vxsx committed Apr 21, 2016
    Configuration menu
    Copy the full SHA
    e1ccffe View commit details
    Browse the repository at this point in the history