Adds more options to author types list

This commit is contained in:
Mouse Reeve 2023-04-25 17:15:42 -07:00
parent 9e17aebc13
commit ef6ace97c5
3 changed files with 52 additions and 4 deletions

View file

@ -0,0 +1,13 @@
# Generated by Django 3.2.18 on 2023-04-26 00:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("bookwyrm", "0156_alter_bookauthor_table"),
("bookwyrm", "0178_auto_20230328_2132"),
]
operations = []

View file

@ -0,0 +1,32 @@
# Generated by Django 3.2.18 on 2023-04-26 00:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("bookwyrm", "0179_merge_20230426_0011"),
]
operations = [
migrations.AlterField(
model_name="bookauthor",
name="author_type",
field=models.CharField(
choices=[
("author", "Author"),
("editor", "Editor"),
("translator", "Translator"),
("contributor", "Contributor"),
("preface", "Author of Preface"),
("illustrator", "Illustrator"),
("letterer", "Letterer"),
("narrator", "Narrator"),
("other", "Other"),
],
default="author",
max_length=255,
),
),
]

View file

@ -451,11 +451,14 @@ def preview_image(instance, *args, **kwargs):
AuthorTypes = [ AuthorTypes = [
("author", _("Author")), ("author", _("Author")),
("contributor", _("Contributor")),
("translator", _("Translator")),
("illustrator", _("Illustrator")),
("editor", _("Editor")), ("editor", _("Editor")),
("Other", _("Other")), ("translator", _("Translator")),
("contributor", _("Contributor")),
("preface", _("Author of Preface")),
("illustrator", _("Illustrator")),
("letterer", _("Letterer")),
("narrator", _("Narrator")),
("other", _("Other")),
] ]