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
facca6db
authored
Aug 22, 2010
by
Alex Gaynor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a bunch of dead imports
parent
1ae2d963
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
taggit/contrib/suggest/tests.py
+2
-2
taggit/contrib/suggest/utils.py
+0
-2
taggit/managers.py
+1
-3
No files found.
taggit/contrib/suggest/tests.py
View file @
facca6db
...
...
@@ -9,7 +9,7 @@ from taggit.models import Tag
class
SuggestCase
(
TestCase
):
def
test_simple_suggest
(
self
):
ku_tag
=
Tag
.
objects
.
create
(
name
=
'ku'
)
ku_keyword1
=
TagKeyword
.
objects
.
create
(
TagKeyword
.
objects
.
create
(
tag
=
ku_tag
,
keyword
=
'kansas university'
)
...
...
@@ -31,7 +31,7 @@ class SuggestCase(TestCase):
def
test_bad_regex
(
self
):
ku_tag
=
Tag
.
objects
.
create
(
name
=
'ku'
)
ku_keyword1
=
TagKeyword
.
objects
.
create
(
TagKeyword
.
objects
.
create
(
tag
=
ku_tag
,
keyword
=
'kansas university'
)
...
...
taggit/contrib/suggest/utils.py
View file @
facca6db
import
re
from
django.conf
import
settings
from
taggit.contrib.suggest.models
import
TagKeyword
,
TagRegex
from
taggit.models
import
Tag
...
...
taggit/managers.py
View file @
facca6db
import
django
from
django.contrib.contenttypes.generic
import
GenericForeignKey
,
GenericRelation
from
django.contrib.contenttypes.generic
import
GenericRelation
from
django.contrib.contenttypes.models
import
ContentType
from
django.db
import
models
from
django.db.models.fields.related
import
ManyToManyRel
from
django.db.models.related
import
RelatedObject
from
django.db.models.query_utils
import
QueryWrapper
from
django.utils.translation
import
ugettext_lazy
as
_
from
taggit.forms
import
TagField
...
...
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