Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-taggit
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f3d92b53
authored
Nov 08, 2013
by
idan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
django 1.7 compatability
parent
c34defdf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
taggit/managers.py
+4
-1
No files found.
taggit/managers.py
View file @
f3d92b53
...
@@ -334,7 +334,10 @@ class _TaggableManager(models.Manager):
...
@@ -334,7 +334,10 @@ class _TaggableManager(models.Manager):
except
(
AttributeError
,
KeyError
):
except
(
AttributeError
,
KeyError
):
return
self
.
through
.
tags_for
(
self
.
model
,
self
.
instance
)
return
self
.
through
.
tags_for
(
self
.
model
,
self
.
instance
)
def
get_prefetch_query_set
(
self
,
instances
):
def
get_prefetch_query_set
(
self
,
instances
,
queryset
=
None
):
if
queryset
is
not
None
:
raise
ValueError
(
"Custom queryset can't be used for this lookup."
)
instance
=
instances
[
0
]
instance
=
instances
[
0
]
from
django.db
import
connections
from
django.db
import
connections
db
=
self
.
_db
or
router
.
db_for_read
(
instance
.
__class__
,
instance
=
instance
)
db
=
self
.
_db
or
router
.
db_for_read
(
instance
.
__class__
,
instance
=
instance
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment