Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
enricosuplico_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
Enrico Lucio A. Suplico
enricosuplico_music
Commits
c19e4bd0
Commit
c19e4bd0
authored
Feb 21, 2023
by
Enrico Lucio A. Suplico
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated homepage
parent
4ea3ea5c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
5 deletions
+43
-5
db.sqlite3
enricosuplico_music/db.sqlite3
+0
-0
models.cpython-310.pyc
...suplico_music/homepage/__pycache__/models.cpython-310.pyc
+0
-0
0003_auto_20230221_2236.py
...lico_music/homepage/migrations/0003_auto_20230221_2236.py
+38
-0
0003_auto_20230221_2236.cpython-310.pyc
...tions/__pycache__/0003_auto_20230221_2236.cpython-310.pyc
+0
-0
models.py
enricosuplico_music/homepage/models.py
+5
-5
No files found.
enricosuplico_music/db.sqlite3
View file @
c19e4bd0
No preview for this file type
enricosuplico_music/homepage/__pycache__/models.cpython-310.pyc
View file @
c19e4bd0
No preview for this file type
enricosuplico_music/homepage/migrations/0003_auto_20230221_2236.py
0 → 100644
View file @
c19e4bd0
# Generated by Django 3.2 on 2023-02-21 14:36
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0002_auto_20230221_1425'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'song_count'
,
field
=
models
.
IntegerField
(
default
=
'0'
),
),
migrations
.
AddField
(
model_name
=
'artist'
,
name
=
'monthly_listners'
,
field
=
models
.
IntegerField
(
default
=
'0'
),
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'lyrics'
,
field
=
models
.
TextField
(
default
=
''
),
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'music_video'
,
field
=
models
.
BooleanField
(
default
=
False
),
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'song_length'
,
field
=
models
.
IntegerField
(
default
=
'0'
),
),
]
enricosuplico_music/homepage/migrations/__pycache__/0003_auto_20230221_2236.cpython-310.pyc
0 → 100644
View file @
c19e4bd0
File added
enricosuplico_music/homepage/models.py
View file @
c19e4bd0
...
...
@@ -2,7 +2,7 @@ from django.db import models
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
,
default
=
""
)
monthly_listners
=
models
.
IntegerField
()
monthly_listners
=
models
.
IntegerField
(
default
=
"0"
)
birth_name
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
,
default
=
""
)
bio
=
models
.
TextField
(
max_length
=
700
,
default
=
"no default"
)
...
...
@@ -15,7 +15,7 @@ class Album(models.Model):
description
=
models
.
TextField
(
max_length
=
500
)
release_date
=
models
.
CharField
(
max_length
=
50
)
label
=
models
.
CharField
(
max_length
=
50
,
default
=
"No label"
)
song_count
=
models
.
IntegerField
song_count
=
models
.
IntegerField
(
default
=
"0"
)
def
__str__
(
self
):
return
self
.
album_name
...
...
@@ -24,9 +24,9 @@ class Song(models.Model):
song_title
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
,
default
=
""
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
)
song_length
=
models
.
IntegerField
()
music_video
=
models
.
BooleanField
()
lyrics
=
models
.
TextField
()
song_length
=
models
.
IntegerField
(
default
=
"0"
)
music_video
=
models
.
BooleanField
(
default
=
False
)
lyrics
=
models
.
TextField
(
default
=
""
)
def
__str__
(
self
):
return
self
.
song_title
...
...
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