Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
sharmchua_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
Sharmaine Chua
sharmchua_music
Commits
45c662aa
Commit
45c662aa
authored
Feb 20, 2023
by
Sharmaine Chua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added new attributes to models.py
parent
d2aa4c9b
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
146 additions
and
12 deletions
+146
-12
db.sqlite3
sharmchua_music/db.sqlite3
+0
-0
admin.cpython-39.pyc
sharmchua_music/homepage/__pycache__/admin.cpython-39.pyc
+0
-0
models.cpython-39.pyc
sharmchua_music/homepage/__pycache__/models.cpython-39.pyc
+0
-0
admin.py
sharmchua_music/homepage/admin.py
+0
-1
0002_album_label_album_song_count_artist_bio_and_more.py
.../0002_album_label_album_song_count_artist_bio_and_more.py
+48
-0
0003_alter_album_album_name_alter_album_artist_and_more.py
...003_alter_album_album_name_alter_album_artist_and_more.py
+83
-0
0002_album_label_album_song_count_artist_bio_and_more.cpython-39.pyc
...label_album_song_count_artist_bio_and_more.cpython-39.pyc
+0
-0
0003_alter_album_album_name_alter_album_artist_and_more.cpython-39.pyc
...bum_album_name_alter_album_artist_and_more.cpython-39.pyc
+0
-0
models.py
sharmchua_music/homepage/models.py
+15
-11
No files found.
sharmchua_music/db.sqlite3
View file @
45c662aa
No preview for this file type
sharmchua_music/homepage/__pycache__/admin.cpython-39.pyc
View file @
45c662aa
No preview for this file type
sharmchua_music/homepage/__pycache__/models.cpython-39.pyc
View file @
45c662aa
No preview for this file type
sharmchua_music/homepage/admin.py
View file @
45c662aa
from
django.contrib
import
admin
from
django.contrib
import
admin
# Register your models here.
sharmchua_music/homepage/migrations/0002_album_label_album_song_count_artist_bio_and_more.py
0 → 100644
View file @
45c662aa
# Generated by Django 4.1.6 on 2023-02-20 07:18
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'label'
,
field
=
models
.
TextField
(
default
=
''
),
),
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'song_count'
,
field
=
models
.
IntegerField
(
default
=
0
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'artist'
,
name
=
'bio'
,
field
=
models
.
TextField
(
default
=
''
,
max_length
=
700
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'artist'
,
name
=
'birth_name'
,
field
=
models
.
TextField
(
default
=
''
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'lyrics'
,
field
=
models
.
TextField
(
default
=
''
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'music_video'
,
field
=
models
.
BooleanField
(
default
=
False
),
preserve_default
=
False
,
),
]
sharmchua_music/homepage/migrations/0003_alter_album_album_name_alter_album_artist_and_more.py
0 → 100644
View file @
45c662aa
# Generated by Django 4.1.6 on 2023-02-20 07:34
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0002_album_label_album_song_count_artist_bio_and_more'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'album'
,
name
=
'album_name'
,
field
=
models
.
TextField
(
default
=
''
),
),
migrations
.
AlterField
(
model_name
=
'album'
,
name
=
'artist'
,
field
=
models
.
TextField
(
default
=
''
),
),
migrations
.
AlterField
(
model_name
=
'album'
,
name
=
'description'
,
field
=
models
.
TextField
(
default
=
''
),
),
migrations
.
AlterField
(
model_name
=
'album'
,
name
=
'song_count'
,
field
=
models
.
IntegerField
(
default
=
0
),
),
migrations
.
AlterField
(
model_name
=
'artist'
,
name
=
'artist_name'
,
field
=
models
.
TextField
(
default
=
''
),
),
migrations
.
AlterField
(
model_name
=
'artist'
,
name
=
'bio'
,
field
=
models
.
TextField
(
default
=
''
,
max_length
=
700
),
),
migrations
.
AlterField
(
model_name
=
'artist'
,
name
=
'birth_name'
,
field
=
models
.
TextField
(
default
=
''
),
),
migrations
.
AlterField
(
model_name
=
'artist'
,
name
=
'monthly_listeners'
,
field
=
models
.
IntegerField
(
default
=
0
),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'album'
,
field
=
models
.
TextField
(
default
=
''
),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'artist'
,
field
=
models
.
TextField
(
default
=
''
),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'lyrics'
,
field
=
models
.
TextField
(
default
=
''
),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'music_video'
,
field
=
models
.
BooleanField
(
default
=
False
),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'song_length'
,
field
=
models
.
IntegerField
(
default
=
0
),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'song_title'
,
field
=
models
.
TextField
(
default
=
''
),
),
]
sharmchua_music/homepage/migrations/__pycache__/0002_album_label_album_song_count_artist_bio_and_more.cpython-39.pyc
0 → 100644
View file @
45c662aa
File added
sharmchua_music/homepage/migrations/__pycache__/0003_alter_album_album_name_alter_album_artist_and_more.cpython-39.pyc
0 → 100644
View file @
45c662aa
File added
sharmchua_music/homepage/models.py
View file @
45c662aa
from
django.db
import
models
from
django.db
import
models
class
Artist
(
models
.
Model
):
class
Artist
(
models
.
Model
):
artist_name
=
models
.
TextField
()
artist_name
=
models
.
TextField
(
default
=
""
)
monthly_listeners
=
models
.
IntegerField
()
monthly_listeners
=
models
.
IntegerField
(
default
=
0
)
birth_name
=
models
.
TextField
(
default
=
""
)
bio
=
models
.
TextField
(
max_length
=
700
,
default
=
""
)
class
Album
(
models
.
Model
):
class
Album
(
models
.
Model
):
album_name
=
models
.
TextField
()
album_name
=
models
.
TextField
(
default
=
""
)
artist
=
models
.
TextField
()
artist
=
models
.
TextField
(
default
=
""
)
description
=
models
.
TextField
()
description
=
models
.
TextField
(
default
=
""
)
release_date
=
models
.
DateField
()
release_date
=
models
.
DateField
()
label
=
models
.
TextField
(
default
=
""
)
song_count
=
models
.
IntegerField
(
default
=
0
)
class
Song
(
models
.
Model
):
class
Song
(
models
.
Model
):
song_title
=
models
.
TextField
()
song_title
=
models
.
TextField
(
default
=
""
)
artist
=
models
.
TextField
()
artist
=
models
.
TextField
(
default
=
""
)
album
=
models
.
TextField
()
album
=
models
.
TextField
(
default
=
""
)
song_length
=
models
.
IntegerField
()
song_length
=
models
.
IntegerField
(
default
=
0
)
music_video
=
models
.
BooleanField
(
default
=
False
)
lyrics
=
models
.
TextField
(
default
=
""
)
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