Skip to content

Commit

Permalink
fix: Make sure BlogPageAuthor.author is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
mgax committed Nov 24, 2023
1 parent ae4a71c commit 8437e7b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
20 changes: 20 additions & 0 deletions ietf/blog/migrations/0008_alter_blogpageauthor_author.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 3.2.20 on 2023-11-24 13:34

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


class Migration(migrations.Migration):

dependencies = [
('snippets', '0002_auto_20200414_2027'),
('blog', '0007_alter_blogpage_body'),
]

operations = [
migrations.AlterField(
model_name='blogpageauthor',
name='author',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='snippets.person'),
),
]
2 changes: 0 additions & 2 deletions ietf/blog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ class BlogPageAuthor(models.Model):
"snippets.Person",
on_delete=models.CASCADE,
related_name="+",
null=True,
blank=True,
)
role = models.ForeignKey(
"snippets.Role",
Expand Down

0 comments on commit 8437e7b

Please sign in to comment.