mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-24 07:58:08 +00:00
Adds more options to author types list
This commit is contained in:
parent
9e17aebc13
commit
ef6ace97c5
3 changed files with 52 additions and 4 deletions
13
bookwyrm/migrations/0179_merge_20230426_0011.py
Normal file
13
bookwyrm/migrations/0179_merge_20230426_0011.py
Normal 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 = []
|
32
bookwyrm/migrations/0180_alter_bookauthor_author_type.py
Normal file
32
bookwyrm/migrations/0180_alter_bookauthor_author_type.py
Normal 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,
|
||||
),
|
||||
),
|
||||
]
|
|
@ -451,11 +451,14 @@ def preview_image(instance, *args, **kwargs):
|
|||
|
||||
AuthorTypes = [
|
||||
("author", _("Author")),
|
||||
("contributor", _("Contributor")),
|
||||
("translator", _("Translator")),
|
||||
("illustrator", _("Illustrator")),
|
||||
("editor", _("Editor")),
|
||||
("Other", _("Other")),
|
||||
("translator", _("Translator")),
|
||||
("contributor", _("Contributor")),
|
||||
("preface", _("Author of Preface")),
|
||||
("illustrator", _("Illustrator")),
|
||||
("letterer", _("Letterer")),
|
||||
("narrator", _("Narrator")),
|
||||
("other", _("Other")),
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue