0004_auto_20200703_2023.py 1.47 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
# Generated by Django 2.2.13 on 2020-07-03 23:23

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        ('courses', '0009_auto_20200609_1453'),
        ('certification', '0003_auto_20200630_2323'),
    ]

    operations = [
        migrations.AddField(
            model_name='certificatetemplate',
            name='document_type',
            field=models.CharField(choices=[('receipt', 'Receipt'), ('certificate', 'Certificate')], default='receipt', max_length=127, verbose_name='Certificate Type'),
        ),
        migrations.AddField(
            model_name='certificatetemplate',
            name='site_logo',
            field=models.ImageField(blank=True, null=True, upload_to='certificates_files', verbose_name='Site Logo'),
        ),
        migrations.AddField(
            model_name='certificatetemplate',
            name='text',
            field=models.TextField(default='', verbose_name='Content'),
        ),
        migrations.AddField(
            model_name='certificatetemplate',
            name='workspace',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='courses.Workspace'),
        ),
        migrations.AlterUniqueTogether(
            name='certificatetemplate',
            unique_together={('workspace', 'course', 'document_type')},
        ),
        migrations.DeleteModel(
            name='CertificateData',
        ),
    ]