Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.web
Commits
371752ed
Commit
371752ed
authored
May 09, 2017
by
Flavio TARSETTI
Browse files
[accounts] added profile migration
parent
ba42bdaf
Pipeline
#9016
failed with stage
in 41 minutes and 44 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/web/accounts/migrations/0002_profile.py
0 → 100644
View file @
371752ed
# -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2017-05-08 17:00
from
__future__
import
unicode_literals
from
django.conf
import
settings
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
(
'accounts'
,
'0001_initial'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Profile'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'status'
,
models
.
CharField
(
choices
=
[(
b
'A'
,
b
'Accepted'
),
(
b
'R'
,
b
'Rejected'
),
(
b
'W'
,
b
'Waiting Validation'
),
(
b
'B'
,
b
'Blocked'
)],
default
=
b
'B'
,
max_length
=
1
)),
(
'is_godfather'
,
models
.
BooleanField
(
default
=
False
)),
(
'supervisees'
,
models
.
ManyToManyField
(
blank
=
True
,
related_name
=
'users'
,
to
=
settings
.
AUTH_USER_MODEL
)),
(
'user'
,
models
.
OneToOneField
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
settings
.
AUTH_USER_MODEL
)),
],
),
]
Write
Preview
Supports
Markdown
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