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
b2c472c3
authored
Apr 21, 2014
by
Florian Apolloner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used unicode_literals in migrations.
parent
70238aeb
Show 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 @
b2c472c3
# encoding: utf8
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
...
...
@@ -12,27 +13,27 @@ class Migration(migrations.Migration):
migrations
.
CreateModel
(
name
=
'Tag'
,
fields
=
[
(
u'id'
,
models
.
AutoField
(
verbose_name
=
u
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'name'
,
models
.
CharField
(
unique
=
True
,
max_length
=
100
,
verbose_name
=
u
'Name'
)),
(
'slug'
,
models
.
SlugField
(
unique
=
True
,
max_length
=
100
,
verbose_name
=
u
'Slug'
)),
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'name'
,
models
.
CharField
(
unique
=
True
,
max_length
=
100
,
verbose_name
=
'Name'
)),
(
'slug'
,
models
.
SlugField
(
unique
=
True
,
max_length
=
100
,
verbose_name
=
'Slug'
)),
],
options
=
{
u'verbose_name'
:
u
'Tag'
,
u'verbose_name_plural'
:
u
'Tags'
,
'verbose_name'
:
'Tag'
,
'verbose_name_plural'
:
'Tags'
,
},
bases
=
(
models
.
Model
,),
),
migrations
.
CreateModel
(
name
=
'TaggedItem'
,
fields
=
[
(
u'id'
,
models
.
AutoField
(
verbose_name
=
u
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'tag'
,
models
.
ForeignKey
(
to
=
'taggit.Tag'
,
to_field
=
u
'id'
)),
(
'object_id'
,
models
.
IntegerField
(
verbose_name
=
u
'Object id'
,
db_index
=
True
)),
(
'content_type'
,
models
.
ForeignKey
(
to
=
'contenttypes.ContentType'
,
to_field
=
u'id'
,
verbose_name
=
u
'Content type'
)),
(
'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'
)),
],
options
=
{
u'verbose_name'
:
u
'Tagged Item'
,
u'verbose_name_plural'
:
u
'Tagged Items'
,
'verbose_name'
:
'Tagged Item'
,
'verbose_name_plural'
:
'Tagged Items'
,
},
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