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
c6d4420c
authored
Jul 26, 2013
by
Florian Apolloner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restored 1.5 compat.
parent
599f3df1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
taggit/managers.py
+1
-1
tests/forms.py
+10
-5
No files found.
taggit/managers.py
View file @
c6d4420c
...
...
@@ -5,7 +5,7 @@ from django.contrib.contenttypes.models import ContentType
from
django.db
import
models
from
django.db.models.fields
import
Field
from
django.db.models.fields.related
import
ManyToManyRel
,
RelatedField
,
add_lazy_relation
from
django.db.models.related
import
RelatedObject
,
PathInfo
from
django.db.models.related
import
RelatedObject
from
django.utils.text
import
capfirst
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.utils
import
six
...
...
tests/forms.py
View file @
c6d4420c
from
__future__
import
unicode_literals
,
absolute_import
from
django
import
forms
from
django
import
forms
,
VERSION
from
.models
import
Food
,
DirectFood
,
CustomPKFood
,
OfficialFood
fields
=
None
if
VERSION
>=
(
1
,
6
):
fields
=
'__all__'
class
FoodForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
Food
fields
=
'__all__'
fields
=
fields
class
DirectFoodForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
DirectFood
fields
=
'__all__'
fields
=
fields
class
CustomPKFoodForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
CustomPKFood
fields
=
'__all__'
fields
=
fields
class
OfficialFoodForm
(
forms
.
ModelForm
):
class
Meta
:
model
=
OfficialFood
fields
=
'__all__'
fields
=
fields
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