Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
de5fbf7d
Commit
de5fbf7d
authored
Sep 17, 2014
by
José Padilla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update initial migration to work on Python 3
parent
a37db382
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
rest_framework/authtoken/migrations/0001_initial.py
+3
-3
No files found.
rest_framework/authtoken/migrations/0001_initial.py
View file @
de5fbf7d
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
from
django.db
import
models
,
migrations
...
@@ -15,9 +15,9 @@ class Migration(migrations.Migration):
...
@@ -15,9 +15,9 @@ class Migration(migrations.Migration):
migrations
.
CreateModel
(
migrations
.
CreateModel
(
name
=
'Token'
,
name
=
'Token'
,
fields
=
[
fields
=
[
(
'key'
,
models
.
CharField
(
max_length
=
40
,
serialize
=
False
,
primary_key
=
True
)),
(
'key'
,
models
.
CharField
(
primary_key
=
True
,
serialize
=
False
,
max_length
=
40
)),
(
'created'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'created'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'user'
,
models
.
OneToOneField
(
related_name
=
b
'auth_token'
,
to
=
settings
.
AUTH_USER_MODEL
)),
(
'user'
,
models
.
OneToOneField
(
to
=
settings
.
AUTH_USER_MODEL
,
related_name
=
'auth_token'
)),
],
],
options
=
{
options
=
{
},
},
...
...
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