Commit 56dbe8d3 authored by Star Neptune R. Sy's avatar Star Neptune R. Sy

One last commit for mistakes that were made

parent 5a3fd42b
Sy, Star Neptune R., 215662, F Sy, Star Neptune R., 215662, F
Lab 03: My Favorite Books and Authors Lab 04: My Favorite Books and Authors v2
30 March 2023 25 April 2023
I solemnly swear that this lab is my own work, I did not copy from my classmates or any outside sources. I solemnly swear that this lab is my own work, I did not copy from my classmates or any outside sources.
<sgd> Sy, Star Neptune R., 30 March 2023 <sgd> Sy, Star Neptune R., 25 April 2023
\ No newline at end of file \ No newline at end of file
...@@ -37,4 +37,8 @@ a.navBtn{ ...@@ -37,4 +37,8 @@ a.navBtn{
border-color: rgb(117, 54, 31); border-color: rgb(117, 54, 31);
border-width: 2px; border-width: 2px;
border-style: groove; border-style: groove;
}
input[type=submit]{
background-color: rgb(58, 24, 2);
} }
\ No newline at end of file
...@@ -29,6 +29,7 @@ class BooksAddView(CreateView): ...@@ -29,6 +29,7 @@ class BooksAddView(CreateView):
blurb = request.POST.get('blurb') blurb = request.POST.get('blurb')
s = Book(title=title, author=Author.objects.get(pk=author), publisher=publisher, year_published=yearPublished, ISBN=ISBN, blurb=blurb) s = Book(title=title, author=Author.objects.get(pk=author), publisher=publisher, year_published=yearPublished, ISBN=ISBN, blurb=blurb)
s.save()
return HttpResponseRedirect(str(s.get_absolute_url()) + "/details/") return HttpResponseRedirect(str(s.get_absolute_url()) + "/details/")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment