Adds merge migration and python formatting

This commit is contained in:
Mouse Reeve 2022-01-25 08:45:08 -08:00
parent de4576bc44
commit 037cc35eeb
3 changed files with 20 additions and 1 deletions

View file

@ -443,6 +443,7 @@ class ListForm(CustomForm):
model = models.List
fields = ["user", "name", "description", "curation", "privacy", "group"]
class ListItemForm(CustomForm):
class Meta:
model = models.ListItem

View file

@ -0,0 +1,14 @@
# Generated by Django 3.2.10 on 2022-01-25 16:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('bookwyrm', '0130_alter_listitem_notes'),
('bookwyrm', '0130_alter_user_preferred_language'),
]
operations = [
]

View file

@ -357,7 +357,11 @@ urlpatterns = [
re_path(r"^list/?$", views.Lists.as_view(), name="lists"),
re_path(r"^list/saved/?$", views.SavedLists.as_view(), name="saved-lists"),
re_path(r"^list/(?P<list_id>\d+)(.json)?/?$", views.List.as_view(), name="list"),
re_path(r"^list/(?P<list_id>\d+)/item/(?P<list_item>\d+)/?$", views.ListItem.as_view(), name="list-item"),
re_path(
r"^list/(?P<list_id>\d+)/item/(?P<list_item>\d+)/?$",
views.ListItem.as_view(),
name="list-item",
),
re_path(r"^list/delete/(?P<list_id>\d+)/?$", views.delete_list, name="delete-list"),
re_path(r"^list/add-book/?$", views.add_book, name="list-add-book"),
re_path(