Lets users opt in to directory

This commit is contained in:
Mouse Reeve 2021-03-21 12:53:30 -07:00
parent e94a5032fc
commit 16994908d8
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,19 @@
# Generated by Django 3.1.6 on 2021-03-21 21:44
import bookwyrm.models.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('bookwyrm', '0056_auto_20210321_0303'),
]
operations = [
migrations.AddField(
model_name='user',
name='discoverable',
field=bookwyrm.models.fields.BooleanField(default=False),
),
]

View file

@ -103,6 +103,7 @@ class User(OrderedCollectionPageMixin, AbstractUser):
last_active_date = models.DateTimeField(auto_now=True)
manually_approves_followers = fields.BooleanField(default=False)
show_goal = models.BooleanField(default=True)
show_in_directory = models.BooleanField(default=False)
name_field = "username"