Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
drizzydretan_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
Andre Dalwin C. Tan
drizzydretan_reading
Commits
124bf255
Commit
124bf255
authored
Mar 27, 2023
by
Andre Dalwin C. Tan
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Populated models with ChatGPT-generated information
parent
812bfcd8
Pipeline
#2954
failed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
models.cpython-311.pyc
bookshelf/__pycache__/models.cpython-311.pyc
+0
-0
models.py
bookshelf/models.py
+6
-1
db.sqlite3
db.sqlite3
+0
-0
No files found.
bookshelf/__pycache__/models.cpython-311.pyc
View file @
124bf255
No preview for this file type
bookshelf/models.py
View file @
124bf255
...
@@ -8,6 +8,9 @@ class Author(models.Model):
...
@@ -8,6 +8,9 @@ class Author(models.Model):
age
=
models
.
IntegerField
()
age
=
models
.
IntegerField
()
nationality
=
models
.
CharField
(
max_length
=
50
)
nationality
=
models
.
CharField
(
max_length
=
50
)
bio
=
models
.
CharField
(
max_length
=
700
)
bio
=
models
.
CharField
(
max_length
=
700
)
def
__str__
(
self
):
return
(
self
.
first_name
+
" "
+
self
.
last_name
)
class
Books
(
models
.
Model
):
class
Books
(
models
.
Model
):
title
=
models
.
CharField
(
max_length
=
100
)
title
=
models
.
CharField
(
max_length
=
100
)
...
@@ -15,4 +18,6 @@ class Books(models.Model):
...
@@ -15,4 +18,6 @@ class Books(models.Model):
publisher
=
models
.
CharField
(
max_length
=
100
)
publisher
=
models
.
CharField
(
max_length
=
100
)
year_published
=
models
.
IntegerField
()
year_published
=
models
.
IntegerField
()
ISBN
=
models
.
IntegerField
()
ISBN
=
models
.
IntegerField
()
blurb
=
models
.
CharField
(
max_length
=
700
)
blurb
=
models
.
CharField
(
max_length
=
700
)
\ No newline at end of file
def
__str__
(
self
):
return
(
self
.
title
)
\ No newline at end of file
db.sqlite3
View file @
124bf255
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