| 1 |
# -*- coding: utf-8 -*- |
| 2 |
# Generated by Django 1.9 on 2016-01-02 11:58 |
| 3 |
from __future__ import unicode_literals |
| 4 |
|
| 5 |
from django.db import migrations, models |
| 6 |
import django.db.models.deletion |
| 7 |
|
| 8 |
|
| 9 |
class Migration(migrations.Migration): |
| 10 |
|
| 11 |
initial = True |
| 12 |
|
| 13 |
dependencies = [ |
| 14 |
] |
| 15 |
|
| 16 |
operations = [ |
| 17 |
migrations.CreateModel( |
| 18 |
name='Favicon', |
| 19 |
fields=[ |
| 20 |
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 21 |
('title', models.CharField(max_length=100)), |
| 22 |
('faviconImage', models.ImageField(upload_to='favicon')), |
| 23 |
('isFavicon', models.BooleanField(default=True)), |
| 24 |
], |
| 25 |
options={ |
| 26 |
'verbose_name_plural': 'Favicons', |
| 27 |
'verbose_name': 'Favicon', |
| 28 |
}, |
| 29 |
), |
| 30 |
migrations.CreateModel( |
| 31 |
name='FaviconImg', |
| 32 |
fields=[ |
| 33 |
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 34 |
('size', models.IntegerField()), |
| 35 |
('rel', models.CharField(max_length=250, null=True)), |
| 36 |
('faviconImage', models.ImageField(upload_to='favicon')), |
| 37 |
('faviconFK', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='favicon.Favicon')), |
| 38 |
], |
| 39 |
), |
| 40 |
] |