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
593bbc68
authored
Apr 21, 2014
by
Florian Apolloner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used unicode_literals in migrations.
parent
6d822d97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
taggit/migrations/0001_initial.py
+12
-11
No files found.
taggit/migrations/0001_initial.py
View file @
593bbc68
# encoding: utf8
# encoding: utf8
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
from
django.db
import
models
,
migrations
...
@@ -12,27 +13,27 @@ class Migration(migrations.Migration):
...
@@ -12,27 +13,27 @@ class Migration(migrations.Migration):
migrations
.
CreateModel
(
migrations
.
CreateModel
(
name
=
'Tag'
,
name
=
'Tag'
,
fields
=
[
fields
=
[
(
u'id'
,
models
.
AutoField
(
verbose_name
=
u
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'name'
,
models
.
CharField
(
unique
=
True
,
max_length
=
100
,
verbose_name
=
u
'Name'
)),
(
'name'
,
models
.
CharField
(
unique
=
True
,
max_length
=
100
,
verbose_name
=
'Name'
)),
(
'slug'
,
models
.
SlugField
(
unique
=
True
,
max_length
=
100
,
verbose_name
=
u
'Slug'
)),
(
'slug'
,
models
.
SlugField
(
unique
=
True
,
max_length
=
100
,
verbose_name
=
'Slug'
)),
],
],
options
=
{
options
=
{
u'verbose_name'
:
u
'Tag'
,
'verbose_name'
:
'Tag'
,
u'verbose_name_plural'
:
u
'Tags'
,
'verbose_name_plural'
:
'Tags'
,
},
},
bases
=
(
models
.
Model
,),
bases
=
(
models
.
Model
,),
),
),
migrations
.
CreateModel
(
migrations
.
CreateModel
(
name
=
'TaggedItem'
,
name
=
'TaggedItem'
,
fields
=
[
fields
=
[
(
u'id'
,
models
.
AutoField
(
verbose_name
=
u
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'tag'
,
models
.
ForeignKey
(
to
=
'taggit.Tag'
,
to_field
=
u
'id'
)),
(
'tag'
,
models
.
ForeignKey
(
to
=
'taggit.Tag'
,
to_field
=
'id'
)),
(
'object_id'
,
models
.
IntegerField
(
verbose_name
=
u
'Object id'
,
db_index
=
True
)),
(
'object_id'
,
models
.
IntegerField
(
verbose_name
=
'Object id'
,
db_index
=
True
)),
(
'content_type'
,
models
.
ForeignKey
(
to
=
'contenttypes.ContentType'
,
to_field
=
u'id'
,
verbose_name
=
u
'Content type'
)),
(
'content_type'
,
models
.
ForeignKey
(
to
=
'contenttypes.ContentType'
,
to_field
=
'id'
,
verbose_name
=
'Content type'
)),
],
],
options
=
{
options
=
{
u'verbose_name'
:
u
'Tagged Item'
,
'verbose_name'
:
'Tagged Item'
,
u'verbose_name_plural'
:
u
'Tagged Items'
,
'verbose_name_plural'
:
'Tagged Items'
,
},
},
bases
=
(
models
.
Model
,),
bases
=
(
models
.
Model
,),
),
),
...
...
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