From c9354a5ad134cc0f83936c517b56a49c3954c017 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 30 Oct 2020 13:11:13 -0700 Subject: [PATCH] Make federated server blankable --- .../migrations/0060_auto_20201030_2010.py | 19 +++++++++++++++++++ bookwyrm/models/user.py | 1 + 2 files changed, 20 insertions(+) create mode 100644 bookwyrm/migrations/0060_auto_20201030_2010.py diff --git a/bookwyrm/migrations/0060_auto_20201030_2010.py b/bookwyrm/migrations/0060_auto_20201030_2010.py new file mode 100644 index 000000000..bcc28c5c6 --- /dev/null +++ b/bookwyrm/migrations/0060_auto_20201030_2010.py @@ -0,0 +1,19 @@ +# Generated by Django 3.0.7 on 2020-10-30 20:10 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('bookwyrm', '0059_auto_20201030_1755'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='federated_server', + field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='bookwyrm.FederatedServer'), + ), + ] diff --git a/bookwyrm/models/user.py b/bookwyrm/models/user.py index 0cd8b9788..d1e1f69ea 100644 --- a/bookwyrm/models/user.py +++ b/bookwyrm/models/user.py @@ -24,6 +24,7 @@ class User(OrderedCollectionPageMixin, AbstractUser): 'FederatedServer', on_delete=models.PROTECT, null=True, + blank=True, ) outbox = models.CharField(max_length=255, unique=True) summary = models.TextField(blank=True, null=True)