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
ea0ba87f
authored
Mar 24, 2014
by
Collin Anderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix contenttypes.generic warning in django 1.7
parent
e6c90946
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
taggit/managers.py
+4
-1
taggit/models.py
+4
-1
No files found.
taggit/managers.py
View file @
ea0ba87f
...
@@ -2,7 +2,10 @@ from __future__ import unicode_literals
...
@@ -2,7 +2,10 @@ from __future__ import unicode_literals
from
operator
import
attrgetter
from
operator
import
attrgetter
from
django
import
VERSION
from
django
import
VERSION
from
django.contrib.contenttypes.generic
import
GenericRelation
try
:
from
django.contrib.contenttypes.fields
import
GenericRelation
except
ImportError
:
# django < 1.7
from
django.contrib.contenttypes.generic
import
GenericRelation
from
django.contrib.contenttypes.models
import
ContentType
from
django.contrib.contenttypes.models
import
ContentType
from
django.db
import
models
,
router
from
django.db
import
models
,
router
from
django.db.models.fields
import
Field
from
django.db.models.fields
import
Field
...
...
taggit/models.py
View file @
ea0ba87f
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
from
django.contrib.contenttypes.models
import
ContentType
from
django.contrib.contenttypes.models
import
ContentType
from
django.contrib.contenttypes.generic
import
GenericForeignKey
try
:
from
django.contrib.contenttypes.fields
import
GenericForeignKey
except
ImportError
:
# django < 1.7
from
django.contrib.contenttypes.generic
import
GenericForeignKey
from
django.db
import
models
,
IntegrityError
,
transaction
from
django.db
import
models
,
IntegrityError
,
transaction
from
django.db.models.query
import
QuerySet
from
django.db.models.query
import
QuerySet
from
django.template.defaultfilters
import
slugify
as
default_slugify
from
django.template.defaultfilters
import
slugify
as
default_slugify
...
...
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