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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
345554b9
authored
Jan 13, 2010
by
Alex Gaynor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kill some dead code
parent
386c06af
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
taggit/managers.py
+0
-2
No files found.
taggit/managers.py
View file @
345554b9
...
@@ -50,8 +50,6 @@ class TaggableManager(object):
...
@@ -50,8 +50,6 @@ class TaggableManager(object):
def
get_db_prep_lookup
(
self
,
lookup_type
,
value
):
def
get_db_prep_lookup
(
self
,
lookup_type
,
value
):
if
lookup_type
!=
"in"
:
if
lookup_type
!=
"in"
:
raise
ValueError
(
"You can't do lookups other than
\"
in
\"
on Tags"
)
raise
ValueError
(
"You can't do lookups other than
\"
in
\"
on Tags"
)
if
lookup_type
==
"exact"
:
value
=
[
value
]
if
all
(
isinstance
(
v
,
Tag
)
for
v
in
value
):
if
all
(
isinstance
(
v
,
Tag
)
for
v
in
value
):
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
):
...
...
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