Set book availability

This commit is contained in:
Mouse Reeve
2022-01-17 09:21:58 -08:00
parent 7b1693a435
commit 39814a21f2
5 changed files with 51 additions and 26 deletions

View File

@ -1,24 +0,0 @@
# Generated by Django 3.2.10 on 2022-01-17 17:03
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='is_purchase',
field=bookwyrm.models.fields.BooleanField(blank=True, null=True),
),
migrations.AlterField(
model_name='filelink',
name='filetype',
field=bookwyrm.models.fields.CharField(max_length=50),
),
]

View 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),
),
]