Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
library-app-django
Project
Project
Details
Activity
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
Ilham Maulana
library-app-django
Commits
728d3898
Commit
728d3898
authored
Jul 09, 2024
by
impfundev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: naming model when use as a option
parent
88136780
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
models.py
books/models.py
+3
-0
models.py
librarians/models.py
+3
-0
models.py
members/models.py
+3
-0
No files found.
books/models.py
View file @
728d3898
...
...
@@ -8,5 +8,8 @@ class Book(models.Model):
created_at
=
models
.
DateTimeField
(
auto_now_add
=
True
)
updated_at
=
models
.
DateTimeField
(
auto_now
=
True
)
def
__str__
(
self
):
return
self
.
title
class
Meta
:
db_table
=
"book"
librarians/models.py
View file @
728d3898
...
...
@@ -9,6 +9,9 @@ class Librarians(models.Model):
created_at
=
models
.
DateTimeField
(
auto_now_add
=
True
)
updated_at
=
models
.
DateTimeField
(
auto_now
=
True
)
def
__str__
(
self
):
return
self
.
name
class
Meta
:
db_table
=
"librarians"
...
...
members/models.py
View file @
728d3898
...
...
@@ -14,5 +14,8 @@ class Members(models.Model):
created_at
=
models
.
DateTimeField
(
auto_now_add
=
True
)
updated_at
=
models
.
DateTimeField
(
auto_now
=
True
)
def
__str__
(
self
):
return
self
.
name
class
Meta
:
db_table
=
"members"
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