Don't show lists a book is already on in add form
This commit is contained in:
parent
ab1c7c6d0a
commit
202696f913
2 changed files with 3 additions and 2 deletions
|
@ -83,6 +83,7 @@ class Book(View):
|
|||
}
|
||||
|
||||
if request.user.is_authenticated:
|
||||
data["list_options"] = request.user.list_set.exclude(id__in=data["lists"])
|
||||
data["file_link_form"] = forms.FileLinkForm()
|
||||
readthroughs = models.ReadThrough.objects.filter(
|
||||
user=request.user,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue