Project

General

Profile

« Previous | Next » 

Revision ecfd281d

Added by Serghei Mihai almost 8 years ago

add missing migration

View differences:

corbo/migrations/0002_auto_20150127_2221.py
1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

  
4
from django.db import models, migrations
5

  
6

  
7
class Migration(migrations.Migration):
8

  
9
    dependencies = [
10
        ('corbo', '0001_initial'),
11
    ]
12

  
13
    operations = [
14
        migrations.CreateModel(
15
            name='Broadcast',
16
            fields=[
17
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18
                ('channel', models.CharField(max_length=32, verbose_name='channel', choices=[(b'homepage', 'Homepage'), (b'sms', 'SMS'), (b'email', 'Email')])),
19
                ('time', models.DateTimeField(auto_now_add=True, verbose_name='sent time')),
20
                ('result', models.TextField(verbose_name='result', blank=True)),
21
                ('announce', models.ForeignKey(verbose_name='announce', to='corbo.Announce')),
22
            ],
23
            options={
24
                'ordering': ('-time',),
25
                'verbose_name': 'sent',
26
            },
27
            bases=(models.Model,),
28
        ),
29
        migrations.AlterField(
30
            model_name='announce',
31
            name='expiration_time',
32
            field=models.DateTimeField(null=True, verbose_name='Expires on', blank=True),
33
            preserve_default=True,
34
        ),
35
        migrations.AlterField(
36
            model_name='announce',
37
            name='publication_time',
38
            field=models.DateTimeField(null=True, verbose_name='publication time', blank=True),
39
            preserve_default=True,
40
        ),
41
        migrations.AlterField(
42
            model_name='announce',
43
            name='text',
44
            field=models.TextField(verbose_name='Content'),
45
            preserve_default=True,
46
        ),
47
    ]

Also available in: Unified diff