Lets users opt in to directory
This commit is contained in:
parent
e94a5032fc
commit
16994908d8
|
@ -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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -103,6 +103,7 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
||||||
last_active_date = models.DateTimeField(auto_now=True)
|
last_active_date = models.DateTimeField(auto_now=True)
|
||||||
manually_approves_followers = fields.BooleanField(default=False)
|
manually_approves_followers = fields.BooleanField(default=False)
|
||||||
show_goal = models.BooleanField(default=True)
|
show_goal = models.BooleanField(default=True)
|
||||||
|
show_in_directory = models.BooleanField(default=False)
|
||||||
|
|
||||||
name_field = "username"
|
name_field = "username"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue