Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lance_tan_music
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
Lance Cedric Tan
lance_tan_music
Commits
af36d463
Commit
af36d463
authored
Feb 21, 2023
by
Lance Cedric Tan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed __str__ in all models.py files
parent
d71e0ec1
Pipeline
#2816
failed with stages
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
+9
-9
.DS_Store
.DS_Store
+0
-0
models.py
About/models.py
+3
-3
models.py
Contact/models.py
+3
-3
.DS_Store
Homepage/.DS_Store
+0
-0
models.py
Homepage/models.py
+3
-3
db.sqlite3
db.sqlite3
+0
-0
No files found.
.DS_Store
View file @
af36d463
No preview for this file type
About/models.py
View file @
af36d463
...
@@ -10,7 +10,7 @@ class Artist(models.Model):
...
@@ -10,7 +10,7 @@ class Artist(models.Model):
monthly_listeners
=
models
.
IntegerField
()
monthly_listeners
=
models
.
IntegerField
()
def
__str__
(
self
):
def
__str__
(
self
):
return
artist_name
return
self
.
artist_name
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'artist'
,
args
=
[
str
(
self
.
artist_name
)])
return
reverse
(
'artist'
,
args
=
[
str
(
self
.
artist_name
)])
...
@@ -25,7 +25,7 @@ class Album(models.Model):
...
@@ -25,7 +25,7 @@ class Album(models.Model):
release_date
=
models
.
CharField
(
max_length
=
255
)
release_date
=
models
.
CharField
(
max_length
=
255
)
def
__str__
(
self
):
def
__str__
(
self
):
return
album_name
return
self
.
album_name
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'album'
,
args
=
[
str
(
self
.
album_name
)])
return
reverse
(
'album'
,
args
=
[
str
(
self
.
album_name
)])
...
@@ -43,7 +43,7 @@ class SongInfo(models.Model):
...
@@ -43,7 +43,7 @@ class SongInfo(models.Model):
song_length
=
models
.
IntegerField
()
song_length
=
models
.
IntegerField
()
def
__str__
(
self
):
def
__str__
(
self
):
return
song_title
return
s
elf
.
s
ong_title
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'song'
,
args
=
[
str
(
self
.
song_title
)])
return
reverse
(
'song'
,
args
=
[
str
(
self
.
song_title
)])
Contact/models.py
View file @
af36d463
...
@@ -10,7 +10,7 @@ class Artist(models.Model):
...
@@ -10,7 +10,7 @@ class Artist(models.Model):
monthly_listeners
=
models
.
IntegerField
()
monthly_listeners
=
models
.
IntegerField
()
def
__str__
(
self
):
def
__str__
(
self
):
return
artist_name
return
self
.
artist_name
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'artist'
,
args
=
[
str
(
self
.
artist_name
)])
return
reverse
(
'artist'
,
args
=
[
str
(
self
.
artist_name
)])
...
@@ -25,7 +25,7 @@ class Album(models.Model):
...
@@ -25,7 +25,7 @@ class Album(models.Model):
release_date
=
models
.
CharField
(
max_length
=
255
)
release_date
=
models
.
CharField
(
max_length
=
255
)
def
__str__
(
self
):
def
__str__
(
self
):
return
album_name
return
self
.
album_name
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'album'
,
args
=
[
str
(
self
.
album_name
)])
return
reverse
(
'album'
,
args
=
[
str
(
self
.
album_name
)])
...
@@ -43,7 +43,7 @@ class SongInfo(models.Model):
...
@@ -43,7 +43,7 @@ class SongInfo(models.Model):
song_length
=
models
.
IntegerField
()
song_length
=
models
.
IntegerField
()
def
__str__
(
self
):
def
__str__
(
self
):
return
song_title
return
s
elf
.
s
ong_title
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'song'
,
args
=
[
str
(
self
.
song_title
)])
return
reverse
(
'song'
,
args
=
[
str
(
self
.
song_title
)])
Homepage/.DS_Store
0 → 100644
View file @
af36d463
File added
Homepage/models.py
View file @
af36d463
...
@@ -10,7 +10,7 @@ class Artist(models.Model):
...
@@ -10,7 +10,7 @@ class Artist(models.Model):
monthly_listeners
=
models
.
IntegerField
()
monthly_listeners
=
models
.
IntegerField
()
def
__str__
(
self
):
def
__str__
(
self
):
return
artist_name
return
self
.
artist_name
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'artist'
,
args
=
[
str
(
self
.
artist_name
)])
return
reverse
(
'artist'
,
args
=
[
str
(
self
.
artist_name
)])
...
@@ -25,7 +25,7 @@ class Album(models.Model):
...
@@ -25,7 +25,7 @@ class Album(models.Model):
release_date
=
models
.
CharField
(
max_length
=
255
)
release_date
=
models
.
CharField
(
max_length
=
255
)
def
__str__
(
self
):
def
__str__
(
self
):
return
album_name
return
self
.
album_name
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'album'
,
args
=
[
str
(
self
.
album_name
)])
return
reverse
(
'album'
,
args
=
[
str
(
self
.
album_name
)])
...
@@ -43,7 +43,7 @@ class SongInfo(models.Model):
...
@@ -43,7 +43,7 @@ class SongInfo(models.Model):
song_length
=
models
.
IntegerField
()
song_length
=
models
.
IntegerField
()
def
__str__
(
self
):
def
__str__
(
self
):
return
song_title
return
s
elf
.
s
ong_title
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'song'
,
args
=
[
str
(
self
.
song_title
)])
return
reverse
(
'song'
,
args
=
[
str
(
self
.
song_title
)])
db.sqlite3
View file @
af36d463
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