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
e8cac34e
authored
Aug 15, 2014
by
Florian Apolloner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed 1.7 migrations.
parent
819484fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
34 deletions
+42
-34
taggit/migrations/0001_initial.py
+4
-3
tests/migrations/0001_initial.py
+38
-31
No files found.
taggit/migrations/0001_initial.py
View file @
e8cac34e
#
encoding: utf8
#
-*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
...
...
@@ -27,9 +28,9 @@ class Migration(migrations.Migration):
name
=
'TaggedItem'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'tag'
,
models
.
ForeignKey
(
to
=
'taggit.Tag'
,
to_field
=
'id'
)),
(
'object_id'
,
models
.
IntegerField
(
verbose_name
=
'Object id'
,
db_index
=
True
)),
(
'content_type'
,
models
.
ForeignKey
(
to
=
'contenttypes.ContentType'
,
to_field
=
'id'
,
verbose_name
=
'Content type'
)),
(
'content_type'
,
models
.
ForeignKey
(
related_name
=
'taggit_taggeditem_tagged_items'
,
verbose_name
=
'Content type'
,
to
=
'contenttypes.ContentType'
)),
(
'tag'
,
models
.
ForeignKey
(
related_name
=
'taggit_taggeditem_items'
,
to
=
'taggit.Tag'
)),
],
options
=
{
'verbose_name'
:
'Tagged Item'
,
...
...
tests/migrations/0001_initial.py
View file @
e8cac34e
...
...
@@ -54,7 +54,7 @@ class Migration(migrations.Migration):
migrations
.
CreateModel
(
name
=
'CustomPKHousePet'
,
fields
=
[
(
'custompkpet_ptr'
,
models
.
OneToOneField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
to
=
'tests.CustomPKPet'
)),
(
'custompkpet_ptr'
,
models
.
OneToOneField
(
parent_link
=
True
,
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
to
=
'tests.CustomPKPet'
)),
(
'trained'
,
models
.
BooleanField
(
default
=
False
)),
],
options
=
{
...
...
@@ -84,7 +84,7 @@ class Migration(migrations.Migration):
migrations
.
CreateModel
(
name
=
'DirectHousePet'
,
fields
=
[
(
'directpet_ptr'
,
models
.
OneToOneField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
to
=
'tests.DirectPet'
)),
(
'directpet_ptr'
,
models
.
OneToOneField
(
parent_link
=
True
,
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
to
=
'tests.DirectPet'
)),
(
'trained'
,
models
.
BooleanField
(
default
=
False
)),
],
options
=
{
...
...
@@ -155,7 +155,7 @@ class Migration(migrations.Migration):
migrations
.
CreateModel
(
name
=
'OfficialHousePet'
,
fields
=
[
(
'officialpet_ptr'
,
models
.
OneToOneField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
to
=
'tests.OfficialPet'
)),
(
'officialpet_ptr'
,
models
.
OneToOneField
(
parent_link
=
True
,
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
to
=
'tests.OfficialPet'
)),
(
'trained'
,
models
.
BooleanField
(
default
=
False
)),
],
options
=
{
...
...
@@ -180,8 +180,8 @@ class Migration(migrations.Migration):
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'object_id'
,
models
.
IntegerField
(
verbose_name
=
'Object id'
,
db_index
=
True
)),
(
'content_type'
,
models
.
ForeignKey
(
verbose_name
=
'Content type'
,
to
=
'contenttypes.ContentType'
)),
(
'tag'
,
models
.
ForeignKey
(
to
=
'tests.OfficialTag'
)),
(
'content_type'
,
models
.
ForeignKey
(
related_name
=
'tests_officialthroughmodel_tagged_items'
,
verbose_name
=
'Content type'
,
to
=
'contenttypes.ContentType'
)),
(
'tag'
,
models
.
ForeignKey
(
related_name
=
'tagged_items'
,
to
=
'tests.OfficialTag'
)),
],
options
=
{
'abstract'
:
False
,
...
...
@@ -201,6 +201,30 @@ class Migration(migrations.Migration):
preserve_default
=
True
,
),
migrations
.
CreateModel
(
name
=
'Parent'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
migrations
.
CreateModel
(
name
=
'Child'
,
fields
=
[
(
'parent_ptr'
,
models
.
OneToOneField
(
parent_link
=
True
,
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
to
=
'tests.Parent'
)),
],
options
=
{
},
bases
=
(
'tests.parent'
,),
),
migrations
.
AddField
(
model_name
=
'parent'
,
name
=
'tags'
,
field
=
taggit
.
managers
.
TaggableManager
(
to
=
'taggit.Tag'
,
through
=
'taggit.TaggedItem'
,
help_text
=
'A comma-separated list of tags.'
,
verbose_name
=
'Tags'
),
preserve_default
=
True
,
),
migrations
.
CreateModel
(
name
=
'Pet'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
...
...
@@ -213,7 +237,7 @@ class Migration(migrations.Migration):
migrations
.
CreateModel
(
name
=
'HousePet'
,
fields
=
[
(
'pet_ptr'
,
models
.
OneToOneField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
to
=
'tests.Pet'
)),
(
'pet_ptr'
,
models
.
OneToOneField
(
parent_link
=
True
,
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
to
=
'tests.Pet'
)),
(
'trained'
,
models
.
BooleanField
(
default
=
False
)),
],
options
=
{
...
...
@@ -262,7 +286,7 @@ class Migration(migrations.Migration):
migrations
.
AddField
(
model_name
=
'taggedcustompkfood'
,
name
=
'tag'
,
field
=
models
.
ForeignKey
(
to
=
'taggit.Tag'
),
field
=
models
.
ForeignKey
(
related_name
=
'tests_taggedcustompkfood_items'
,
to
=
'taggit.Tag'
),
preserve_default
=
True
,
),
migrations
.
CreateModel
(
...
...
@@ -290,7 +314,7 @@ class Migration(migrations.Migration):
migrations
.
AddField
(
model_name
=
'taggedcustompkpet'
,
name
=
'tag'
,
field
=
models
.
ForeignKey
(
to
=
'taggit.Tag'
),
field
=
models
.
ForeignKey
(
related_name
=
'tests_taggedcustompkpet_items'
,
to
=
'taggit.Tag'
),
preserve_default
=
True
,
),
migrations
.
CreateModel
(
...
...
@@ -318,7 +342,7 @@ class Migration(migrations.Migration):
migrations
.
AddField
(
model_name
=
'taggedfood'
,
name
=
'tag'
,
field
=
models
.
ForeignKey
(
to
=
'taggit.Tag'
),
field
=
models
.
ForeignKey
(
related_name
=
'tests_taggedfood_items'
,
to
=
'taggit.Tag'
),
preserve_default
=
True
,
),
migrations
.
CreateModel
(
...
...
@@ -346,7 +370,7 @@ class Migration(migrations.Migration):
migrations
.
AddField
(
model_name
=
'taggedpet'
,
name
=
'tag'
,
field
=
models
.
ForeignKey
(
to
=
'taggit.Tag'
),
field
=
models
.
ForeignKey
(
related_name
=
'tests_taggedpet_items'
,
to
=
'taggit.Tag'
),
preserve_default
=
True
,
),
migrations
.
CreateModel
(
...
...
@@ -374,7 +398,7 @@ class Migration(migrations.Migration):
migrations
.
AddField
(
model_name
=
'through1'
,
name
=
'tag'
,
field
=
models
.
ForeignKey
(
to
=
'taggit.Tag'
),
field
=
models
.
ForeignKey
(
related_name
=
'tests_through1_items'
,
to
=
'taggit.Tag'
),
preserve_default
=
True
,
),
migrations
.
CreateModel
(
...
...
@@ -402,7 +426,7 @@ class Migration(migrations.Migration):
migrations
.
AddField
(
model_name
=
'through2'
,
name
=
'tag'
,
field
=
models
.
ForeignKey
(
to
=
'taggit.Tag'
),
field
=
models
.
ForeignKey
(
related_name
=
'tests_through2_items'
,
to
=
'taggit.Tag'
),
preserve_default
=
True
,
),
migrations
.
CreateModel
(
...
...
@@ -410,8 +434,8 @@ class Migration(migrations.Migration):
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'object_id'
,
models
.
IntegerField
(
verbose_name
=
'Object id'
,
db_index
=
True
)),
(
'content_type'
,
models
.
ForeignKey
(
verbose_name
=
'Content type'
,
to
=
'contenttypes.ContentType'
)),
(
'tag'
,
models
.
ForeignKey
(
to
=
'taggit.Tag'
)),
(
'content_type'
,
models
.
ForeignKey
(
related_name
=
'tests_throughgfk_tagged_items'
,
verbose_name
=
'Content type'
,
to
=
'contenttypes.ContentType'
)),
(
'tag'
,
models
.
ForeignKey
(
related_name
=
'tagged_items'
,
to
=
'taggit.Tag'
)),
],
options
=
{
'abstract'
:
False
,
...
...
@@ -448,21 +472,4 @@ class Migration(migrations.Migration):
field
=
taggit
.
managers
.
TaggableManager
(
to
=
'taggit.Tag'
,
through
=
'tests.ArticleTaggedItem'
,
help_text
=
'A comma-separated list of tags.'
,
verbose_name
=
'Tags'
),
preserve_default
=
True
,
),
migrations
.
CreateModel
(
name
=
'Parent'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
migrations
.
CreateModel
(
name
=
'Child'
,
fields
=
[
],
options
=
{
},
bases
=
(
'tests.Parent'
,),
),
]
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