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
6c6936ef
authored
Feb 13, 2011
by
Alex Gaynor
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:alex/django-taggit
parents
684bb200
2a1ae585
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
taggit/managers.py
+6
-0
No files found.
taggit/managers.py
View file @
6c6936ef
...
...
@@ -110,6 +110,12 @@ class TaggableManager(RelatedField):
def
m2m_reverse_name
(
self
):
return
self
.
through
.
_meta
.
get_field_by_name
(
"tag"
)[
0
]
.
column
def
m2m_target_field_name
(
self
):
return
self
.
model
.
_meta
.
pk
.
name
def
m2m_reverse_target_field_name
(
self
):
return
self
.
rel
.
to
.
_meta
.
pk
.
name
def
m2m_column_name
(
self
):
if
self
.
use_gfk
:
return
self
.
through
.
_meta
.
virtual_fields
[
0
]
.
fk_field
...
...
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