Skip to content
Snippets Groups Projects
Unverified Commit 723f97d0 authored by Dan Braghis's avatar Dan Braghis Committed by GitHub
Browse files

Merge pull request #40 from OpenTechFund/feature/107-fix-none-page-bug-in-template

Make the author field required
parents 657daf91 dc3de4e7
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-15 12:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('news', '0003_newspageauthor'),
]
operations = [
migrations.AlterField(
model_name='newspageauthor',
name='author',
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.PROTECT, related_name='+', to='wagtailcore.Page'),
preserve_default=False,
),
]
...@@ -59,9 +59,7 @@ class NewsPageAuthor(Orderable): ...@@ -59,9 +59,7 @@ class NewsPageAuthor(Orderable):
) )
author = models.ForeignKey( author = models.ForeignKey(
'wagtailcore.Page', 'wagtailcore.Page',
null=True, on_delete=models.PROTECT,
blank=True,
on_delete=models.SET_NULL,
related_name='+', related_name='+',
) )
......
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