2016-02-20 02:00:08 +00:00
# -*- coding: utf-8 -*-
2017-01-30 11:16:07 +00:00
2016-02-20 02:00:08 +00:00
from django . db import models , migrations
from django . conf import settings
import uuid
class Migration ( migrations . Migration ) :
dependencies = [
migrations . swappable_dependency ( settings . AUTH_USER_MODEL ) ,
]
operations = [
migrations . CreateModel (
name = ' Profile ' ,
fields = [
( ' created ' , models . DateTimeField ( auto_now_add = True ) ) ,
( ' updated ' , models . DateTimeField ( auto_now = True ) ) ,
( ' uuid ' , models . UUIDField ( serialize = False , editable = False , primary_key = True , default = uuid . uuid4 ) ) ,
2018-04-03 16:44:10 +00:00
( ' user ' , models . OneToOneField ( on_delete = models . PROTECT , to = settings . AUTH_USER_MODEL , help_text = ' The django user this profile belongs to. ' , verbose_name = ' User ' ) ) ,
2016-02-20 02:00:08 +00:00
] ,
options = {
' verbose_name_plural ' : ' Profiles ' ,
' verbose_name ' : ' Profile ' ,
} ,
) ,
]