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)