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
5c0f6c6c
authored
Jul 03, 2013
by
Florian Apolloner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made the testsuite running (with failures+errors) on 1.6.
parent
b2a51255
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
taggit/managers.py
+8
-2
tests/models.py
+1
-1
No files found.
taggit/managers.py
View file @
5c0f6c6c
from
__future__
import
unicode_literals
import
django
from
django.contrib.contenttypes.generic
import
GenericRelation
from
django.contrib.contenttypes.models
import
ContentType
from
django.db
import
models
...
...
@@ -32,12 +33,17 @@ class TaggableManager(RelatedField):
self
.
help_text
=
help_text
self
.
blank
=
blank
self
.
editable
=
True
self
.
unique
=
False
self
.
creates_table
=
False
self
.
db_column
=
None
self
.
choices
=
None
self
.
serialize
=
False
self
.
null
=
True
self
.
primary_key
=
False
self
.
_choices
=
[]
self
.
_unique
=
False
# Remove once we drop 1.5 support.
if
django
.
VERSION
<
(
1
,
6
):
self
.
choices
=
None
self
.
unique
=
False
self
.
creation_counter
=
models
.
Field
.
creation_counter
models
.
Field
.
creation_counter
+=
1
...
...
tests/models.py
View file @
5c0f6c6c
...
...
@@ -97,7 +97,7 @@ class CustomPKHousePet(CustomPKPet):
# Test custom through model to a custom tag model
class
OfficialTag
(
TagBase
):
official
=
models
.
BooleanField
()
official
=
models
.
BooleanField
(
default
=
False
)
class
OfficialThroughModel
(
GenericTaggedItemBase
):
tag
=
models
.
ForeignKey
(
OfficialTag
,
related_name
=
"tagged_items"
)
...
...
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