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
543c6c8e
Commit
543c6c8e
authored
Sep 17, 2014
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1883 from jpadilla/master
Update authtoken latest Django 1.7 migration
parents
92fb08bc
de5fbf7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
rest_framework/authtoken/migrations/0001_initial.py
+3
-4
No files found.
rest_framework/authtoken/migrations/0001_initial.py
View file @
543c6c8e
#
encoding: utf8
#
-*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
...
...
@@ -15,12 +15,11 @@ class Migration(migrations.Migration):
migrations
.
CreateModel
(
name
=
'Token'
,
fields
=
[
(
'key'
,
models
.
CharField
(
max_length
=
40
,
serialize
=
False
,
primary_key
=
True
)),
(
'user'
,
models
.
OneToOneField
(
to
=
settings
.
AUTH_USER_MODEL
,
to_field
=
'id'
)),
(
'key'
,
models
.
CharField
(
primary_key
=
True
,
serialize
=
False
,
max_length
=
40
)),
(
'created'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'user'
,
models
.
OneToOneField
(
to
=
settings
.
AUTH_USER_MODEL
,
related_name
=
'auth_token'
)),
],
options
=
{
'abstract'
:
False
,
},
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