|
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 easy_thumbnails.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='Renkan', |
|
18 fields=[ |
|
19 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), |
|
20 ('rk_id', models.CharField(unique=True, max_length=1024)), |
|
21 ('content', models.TextField(null=True, blank=True)), |
|
22 ('title', models.CharField(max_length=1024, null=True)), |
|
23 ('image', easy_thumbnails.fields.ThumbnailerImageField(default=b'thumbnails/renkan/renkan_default_icon.png', upload_to=b'thumbnails/renkan/')), |
|
24 ('creation_date', models.DateTimeField(auto_now_add=True)), |
|
25 ('modification_date', models.DateTimeField(auto_now=True)), |
|
26 ('owner', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)), |
|
27 ], |
|
28 options={ |
|
29 }, |
|
30 bases=(models.Model,), |
|
31 ), |
|
32 ] |