summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-xtbc/views.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/tbc/views.py b/tbc/views.py
index f45df40..bc3913b 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -348,8 +348,6 @@ def ContentUpload(request, book_id=None):
screenshot = ScreenShots()
screenshot.caption = request.POST['caption'+str(i)]
screenshot.image = request.FILES['image'+str(i)]
- chapter = Chapters.objects.get(name=request.POST['caption'+str(i)], book=curr_book)
- screenshot.chapter = chapter
screenshot.book = curr_book
screenshot.save()
book = Book.objects.order_by("-id")[0]