Add user model field for followers url
This commit is contained in:
parent
f308b7793d
commit
e9d951e4cd
2 changed files with 29 additions and 4 deletions
26
bookwyrm/migrations/0086_auto_20210828_1724.py
Normal file
26
bookwyrm/migrations/0086_auto_20210828_1724.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Generated by Django 3.2.4 on 2021-08-28 17:24
|
||||
|
||||
import bookwyrm.models.fields
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('bookwyrm', '0085_user_saved_lists'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='user',
|
||||
name='followers_url',
|
||||
field=bookwyrm.models.fields.CharField(default='/followers', max_length=255),
|
||||
preserve_default=False,
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='user',
|
||||
name='followers',
|
||||
field=models.ManyToManyField(through='bookwyrm.UserFollows', to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue