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

fix bug when using get_deleted_objects function #633

Merged
merged 2 commits into from
Oct 31, 2018

Conversation

mymusise
Copy link

@mymusise mymusise commented Oct 9, 2018

Fix issue #622 in django2.

@Flamingo-Chen
Copy link

    if django_version > (2, 1):
        deletable_objects, model_count, perms_needed, protected = get_deleted_objects(
            queryset, self.opts, self.admin_site)
    else:
        using = router.db_for_write(self.model)
        deletable_objects, model_count, perms_needed, protected = get_deleted_objects(
            queryset, self.opts, self.user, self.admin_site, using)

Signed-off-by: mymusise <mymusise1@gmail.com>
@wgbbiao wgbbiao merged commit 47481fe into sshwsfc:django2 Oct 31, 2018
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

Successfully merging this pull request may close these issues.

3 participants