Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
danielramos_reading
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
John Riz Daniel Ramos
danielramos_reading
Commits
f126a7fd
Commit
f126a7fd
authored
Apr 25, 2023
by
John Riz Daniel Ramos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code Clean Up
- comments in view.py
parent
7c33a677
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
14 deletions
+3
-14
views.py
danielramos_reading/bookshelf/views.py
+1
-12
db.sqlite3
danielramos_reading/db.sqlite3
+0
-0
edit-author.html
danielramos_reading/templates/bookshelf/edit-author.html
+1
-1
edit-book.html
danielramos_reading/templates/bookshelf/edit-book.html
+1
-1
No files found.
danielramos_reading/bookshelf/views.py
View file @
f126a7fd
...
...
@@ -78,14 +78,3 @@ class AuthorsUpdateView(UpdateView):
template_name
=
"bookshelf/edit-author.html"
success_url
=
"../details/"
\ No newline at end of file
# def books_view(request):
# if request.method == 'POST':
# form = BooksForm(request.POST)
# if form.is_valid():
# new_subject = form.save()
# return redirect('book_details', pk=new_subject.pk)
# else:
# form = BooksForm()
# return render(request, 'book_details', {'form': form})
\ No newline at end of file
danielramos_reading/db.sqlite3
View file @
f126a7fd
No preview for this file type
danielramos_reading/templates/bookshelf/edit-author.html
View file @
f126a7fd
{% extends 'base.html' %}
{% load static %}
{% block title %}Edit{% endblock %}
{% block title %}Edit
Author
{% endblock %}
{% block content %}
{{ form.non_field_errors }}
{% for field in form %}
...
...
danielramos_reading/templates/bookshelf/edit-book.html
View file @
f126a7fd
{% extends 'base.html' %}
{% load static %}
{% block title %}Edit{% endblock %}
{% block title %}Edit
Book
{% endblock %}
{% block content %}
{{ form.non_field_errors }}
{% for field in form %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment