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
5d6a9964
authored
Dec 31, 2009
by
Ben Firshman
Committed by
Alex Gaynor
Dec 31, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pk lookup for longs
parent
bec0cf13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
taggit/managers.py
+1
-1
No files found.
taggit/managers.py
View file @
5d6a9964
...
@@ -56,7 +56,7 @@ class TaggableManager(object):
...
@@ -56,7 +56,7 @@ class TaggableManager(object):
qs
=
TaggedItem
.
objects
.
filter
(
tag__in
=
value
)
qs
=
TaggedItem
.
objects
.
filter
(
tag__in
=
value
)
elif
all
(
isinstance
(
v
,
basestring
)
for
v
in
value
):
elif
all
(
isinstance
(
v
,
basestring
)
for
v
in
value
):
qs
=
TaggedItem
.
objects
.
filter
(
tag__name__in
=
value
)
qs
=
TaggedItem
.
objects
.
filter
(
tag__name__in
=
value
)
elif
all
(
isinstance
(
v
,
int
)
for
v
in
value
):
elif
all
(
isinstance
(
v
,
(
int
,
long
)
)
for
v
in
value
):
# This one is really ackward, just don't do it. The ORM does it
# This one is really ackward, just don't do it. The ORM does it
# for deletes, but no one else gets to.
# for deletes, but no one else gets to.
qs
=
TaggedItem
.
objects
.
filter
(
pk__in
=
value
)
qs
=
TaggedItem
.
objects
.
filter
(
pk__in
=
value
)
...
...
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