Skip to content
Snippets Groups Projects
Commit f4893fbe authored by Julian's avatar Julian
Browse files

Create migration for siteframework

parent 2b7b26d6
No related branches found
No related tags found
No related merge requests found
# Generated by Django 3.0.4 on 2020-04-29 11:15
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-01-02 11:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
......@@ -19,11 +21,10 @@ class Migration(migrations.Migration):
('title', models.CharField(max_length=100)),
('faviconImage', models.ImageField(upload_to='favicon')),
('isFavicon', models.BooleanField(default=True)),
('site', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='favicon', to='sites.Site')),
],
options={
'verbose_name': 'Favicon',
'verbose_name_plural': 'Favicons',
'verbose_name': 'Favicon',
},
),
migrations.CreateModel(
......
# Generated by Django 3.0.4 on 2020-04-29 18:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('favicon', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='favicon',
name='site',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='favicon', to='sites.Site'),
),
]
......@@ -32,7 +32,7 @@ class Favicon(models.Model):
isFavicon = models.BooleanField(default=True)
site = models.ForeignKey(Site, related_name="favicon", on_delete=models.CASCADE)
site = models.ForeignKey(Site, related_name="favicon", on_delete=models.CASCADE, blank=True, null=True)
class Meta:
verbose_name = 'Favicon'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment