We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad67adb commit 64c6da5Copy full SHA for 64c6da5
django_admin_row_actions/utils.py
@@ -1,7 +1,12 @@
1
from functools import wraps
2
-from django.contrib.admin.sites import all_sites
3
from django.db.models.query import QuerySet
4
+# Multiple admin sites only currently work in Django 1.11 due to use of all_sites
5
+try:
6
+ from django.contrib.admin.sites import all_sites
7
+except ImportError:
8
+ from django.contrib import admin
9
+ all_sites = [admin.site]
10
11
class QuerySetIsh(QuerySet):
12
0 commit comments