Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
neptunesy_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
Star Neptune R. Sy
neptunesy_reading
Commits
8222a430
Commit
8222a430
authored
Mar 29, 2023
by
Star Neptune R. Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added get_absolute_url. DIdn't reset anything
parent
bdbd3cf4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
2 deletions
+25
-2
models.cpython-39.pyc
...unesy_reading/bookshelf/__pycache__/models.cpython-39.pyc
+0
-0
0003_alter_book_year_published.py
...ng/bookshelf/migrations/0003_alter_book_year_published.py
+19
-0
0003_alter_book_year_published.cpython-39.pyc
...__pycache__/0003_alter_book_year_published.cpython-39.pyc
+0
-0
models.py
neptunesy_reading/bookshelf/models.py
+6
-2
db.sqlite3
neptunesy_reading/db.sqlite3
+0
-0
No files found.
neptunesy_reading/bookshelf/__pycache__/models.cpython-39.pyc
View file @
8222a430
No preview for this file type
neptunesy_reading/bookshelf/migrations/0003_alter_book_year_published.py
0 → 100644
View file @
8222a430
# Generated by Django 3.2 on 2023-03-29 04:00
import
datetime
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'bookshelf'
,
'0002_alter_book_year_published'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'book'
,
name
=
'year_published'
,
field
=
models
.
DateField
(
default
=
datetime
.
datetime
(
2023
,
3
,
29
,
12
,
0
,
26
,
639804
)),
),
]
neptunesy_reading/bookshelf/migrations/__pycache__/0003_alter_book_year_published.cpython-39.pyc
0 → 100644
View file @
8222a430
File added
neptunesy_reading/bookshelf/models.py
View file @
8222a430
...
...
@@ -11,7 +11,8 @@ class Author(models.Model):
def
__str__
(
self
):
return
"{} {}"
.
format
(
self
.
first_name
,
self
.
last_name
)
def
get_absolute_url
(
self
):
return
self
.
pk
class
Book
(
models
.
Model
):
...
...
@@ -26,4 +27,7 @@ class Book(models.Model):
blurb
=
models
.
TextField
(
blank
=
True
,)
def
__str__
(
self
):
return
self
.
title
\ No newline at end of file
return
self
.
title
def
get_absolute_url
(
self
):
return
self
.
pk
\ No newline at end of file
neptunesy_reading/db.sqlite3
View file @
8222a430
No preview for this file type
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