| 1 | # -*- coding: utf-8 -*-
|
|---|
| 2 | from __future__ import unicode_literals
|
|---|
| 3 |
|
|---|
| 4 | from django.db import models, migrations
|
|---|
| 5 | from django.conf import settings
|
|---|
| 6 | import timezone_field.fields
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | class Migration(migrations.Migration):
|
|---|
| 10 |
|
|---|
| 11 | dependencies = [
|
|---|
| 12 | migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|---|
| 13 | ]
|
|---|
| 14 |
|
|---|
| 15 | operations = [
|
|---|
| 16 | migrations.CreateModel(
|
|---|
| 17 | name='UserProfile',
|
|---|
| 18 | fields=[
|
|---|
| 19 | ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)),
|
|---|
| 20 | ('timezone', timezone_field.fields.TimeZoneField(default='America/Edmonton')),
|
|---|
| 21 | ],
|
|---|
| 22 | options={
|
|---|
| 23 | },
|
|---|
| 24 | bases=(models.Model,),
|
|---|
| 25 | ),
|
|---|
| 26 | ]
|
|---|