Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
javing_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
John Aidan Vincent M. Ng
javing_music
Commits
0a9f0cb9
Commit
0a9f0cb9
authored
Feb 20, 2023
by
Javi Ng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made migrations
parent
e5e3835a
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
5 deletions
+48
-5
db.sqlite3
javing_music/db.sqlite3
+0
-0
models.cpython-310.pyc
javing_music/homepage/__pycache__/models.cpython-310.pyc
+0
-0
0002_auto_20230220_0547.py
javing_music/homepage/migrations/0002_auto_20230220_0547.py
+43
-0
models.py
javing_music/homepage/models.py
+5
-5
No files found.
javing_music/db.sqlite3
View file @
0a9f0cb9
No preview for this file type
javing_music/homepage/__pycache__/models.cpython-310.pyc
View file @
0a9f0cb9
No preview for this file type
javing_music/homepage/migrations/0002_auto_20230220_0547.py
0 → 100644
View file @
0a9f0cb9
# Generated by Django 3.2 on 2023-02-20 05:47
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'label'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
100
),
),
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'song_count'
,
field
=
models
.
CharField
(
default
=
0
,
max_length
=
50
),
),
migrations
.
AddField
(
model_name
=
'artist'
,
name
=
'bio'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
700
),
),
migrations
.
AddField
(
model_name
=
'artist'
,
name
=
'birth_name'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
100
),
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'lyrics'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
1000
),
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'music_video'
,
field
=
models
.
BooleanField
(
default
=
False
),
),
]
javing_music/homepage/models.py
View file @
0a9f0cb9
...
...
@@ -4,8 +4,8 @@ from django.db import models
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
50
)
monthly_listeners
=
models
.
IntegerField
(
default
=
0
)
birth_name
=
models
.
CharField
(
max_length
=
100
)
bio
=
models
.
CharField
(
max_length
=
700
)
birth_name
=
models
.
CharField
(
max_length
=
100
,
default
=
""
)
bio
=
models
.
CharField
(
max_length
=
700
,
default
=
""
)
def
__str__
(
self
):
return
self
.
artist_name
...
...
@@ -14,8 +14,8 @@ class Album(models.Model):
album_name
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
description
=
models
.
CharField
(
max_length
=
500
)
label
=
models
.
CharField
(
max_length
=
100
)
song_count
=
models
.
CharField
(
max_length
=
50
)
label
=
models
.
CharField
(
max_length
=
100
,
default
=
""
)
song_count
=
models
.
CharField
(
max_length
=
50
,
default
=
0
)
release_date
=
models
.
DateTimeField
(
"Date Released"
)
def
__str__
(
self
):
...
...
@@ -25,7 +25,7 @@ class Song(models.Model):
song_title
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
)
lyrics
=
models
.
CharField
(
max_length
=
1000
)
lyrics
=
models
.
CharField
(
max_length
=
1000
,
default
=
""
)
song_length
=
models
.
IntegerField
(
default
=
0
)
music_video
=
models
.
BooleanField
(
default
=
False
)
...
...
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