Set book availability
This commit is contained in:
parent
7b1693a435
commit
39814a21f2
5 changed files with 51 additions and 26 deletions
32
bookwyrm/migrations/0129_auto_20220117_1716.py
Normal file
32
bookwyrm/migrations/0129_auto_20220117_1716.py
Normal file
|
@ -0,0 +1,32 @@
|
|||
# Generated by Django 3.2.10 on 2022-01-17 17:16
|
||||
|
||||
import bookwyrm.models.fields
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("bookwyrm", "0128_merge_0126_auto_20220112_2315_0127_auto_20220110_2211"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="filelink",
|
||||
name="availability",
|
||||
field=bookwyrm.models.fields.CharField(
|
||||
choices=[
|
||||
("free", "Free"),
|
||||
("purchase", "Purchasable"),
|
||||
("loan", "Available for loan"),
|
||||
],
|
||||
default="free",
|
||||
max_length=100,
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="filelink",
|
||||
name="filetype",
|
||||
field=bookwyrm.models.fields.CharField(max_length=50),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue