server/python/django/renkanmanager/migrations/0001_initial.py
author rougeronj
Tue, 22 Sep 2015 15:14:10 +0200
changeset 543 5f7bebdcfc0d
parent 407 4ee3038fc98f
permissions -rw-r--r--
Improve the way we init the view. The data loader send a "loaded" event, hooked by the scene.py and initializing the backbone.history and the view. We don't use redraw_active in save-once and full-json, because it was making the view initialization dependent of these file which are externals. Small fix to hide the "set saved view" button when there is only one view.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
318
815589aed866 django app renkamanager (models, vanilla views, utils, static files)
cavaliet
parents:
diff changeset
     1
# -*- coding: utf-8 -*-
407
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
     2
from __future__ import unicode_literals
318
815589aed866 django app renkamanager (models, vanilla views, utils, static files)
cavaliet
parents:
diff changeset
     3
407
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
     4
from django.db import models, migrations
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
     5
from django.conf import settings
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
     6
import easy_thumbnails.fields
318
815589aed866 django app renkamanager (models, vanilla views, utils, static files)
cavaliet
parents:
diff changeset
     7
815589aed866 django app renkamanager (models, vanilla views, utils, static files)
cavaliet
parents:
diff changeset
     8
407
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
     9
class Migration(migrations.Migration):
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    10
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    11
    dependencies = [
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    12
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    13
    ]
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    14
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    15
    operations = [
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    16
        migrations.CreateModel(
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    17
            name='Renkan',
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    18
            fields=[
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    19
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    20
                ('rk_id', models.CharField(unique=True, max_length=1024)),
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    21
                ('content', models.TextField(null=True, blank=True)),
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    22
                ('title', models.CharField(max_length=1024, null=True)),
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    23
                ('image', easy_thumbnails.fields.ThumbnailerImageField(default=b'thumbnails/renkan/renkan_default_icon.png', upload_to=b'thumbnails/renkan/')),
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    24
                ('creation_date', models.DateTimeField(auto_now_add=True)),
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    25
                ('modification_date', models.DateTimeField(auto_now=True)),
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    26
                ('owner', models.ForeignKey(blank=True, to=settings.AUTH_USER_MODEL, null=True)),
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    27
            ],
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    28
            options={
387
87555646dd07 correct renkan migration, remove dependency to hdabo
ymh <ymh.work@gmail.com>
parents: 318
diff changeset
    29
            },
407
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    30
            bases=(models.Model,),
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    31
        ),
4ee3038fc98f migrate to django 1.7
ymh <ymh.work@gmail.com>
parents: 387
diff changeset
    32
    ]