Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
migs_atienza_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
Migs Atienza
migs_atienza_music
Commits
952bc7ea
Commit
952bc7ea
authored
Feb 21, 2023
by
Migs Atienza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrated Updated Model Database
parent
adc7e747
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
51 additions
and
8 deletions
+51
-8
db.sqlite3
migs_atienza_music/db.sqlite3
+0
-0
admin.cpython-39.pyc
migs_atienza_music/homepage/__pycache__/admin.cpython-39.pyc
+0
-0
models.cpython-39.pyc
..._atienza_music/homepage/__pycache__/models.cpython-39.pyc
+0
-0
admin.py
migs_atienza_music/homepage/admin.py
+2
-2
0002_album_label_album_song_count_artist_bio_and_more.py
.../0002_album_label_album_song_count_artist_bio_and_more.py
+43
-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
models.py
migs_atienza_music/homepage/models.py
+6
-6
No files found.
migs_atienza_music/db.sqlite3
View file @
952bc7ea
No preview for this file type
migs_atienza_music/homepage/__pycache__/admin.cpython-39.pyc
View file @
952bc7ea
No preview for this file type
migs_atienza_music/homepage/__pycache__/models.cpython-39.pyc
View file @
952bc7ea
No preview for this file type
migs_atienza_music/homepage/admin.py
View file @
952bc7ea
...
...
@@ -16,7 +16,7 @@ class AlbumAdmin(admin.ModelAdmin):
list_display
=
(
"album_name"
,
"description"
,
"release_date"
,
"label"
,
"song_count"
)
search_fields
=
(
"album_name"
,
"description"
,
"label"
)
list_filter
=
"album_name"
list_filter
=
(
"album_name"
,)
class
SongAdmin
(
admin
.
ModelAdmin
):
...
...
@@ -24,7 +24,7 @@ class SongAdmin(admin.ModelAdmin):
list_display
=
(
"song_title"
,
"song_length"
,
"lyrics"
,
"music_video"
)
search_fields
=
(
"song_title"
,
"lyrics"
)
list_filter
=
"song_title"
list_filter
=
(
"song_title"
,)
# Register your models here.
...
...
migs_atienza_music/homepage/migrations/0002_album_label_album_song_count_artist_bio_and_more.py
0 → 100644
View file @
952bc7ea
# Generated by Django 4.1.6 on 2023-02-21 12:45
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
=
50
),
),
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'song_count'
,
field
=
models
.
IntegerField
(
default
=
0
),
),
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
=
50
),
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'lyrics'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
2500
),
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'music_video'
,
field
=
models
.
BooleanField
(
default
=
False
),
),
]
migs_atienza_music/homepage/migrations/__pycache__/0002_album_label_album_song_count_artist_bio_and_more.cpython-39.pyc
0 → 100644
View file @
952bc7ea
File added
migs_atienza_music/homepage/models.py
View file @
952bc7ea
...
...
@@ -4,8 +4,8 @@ from django.db import models
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
50
)
monthly_listeners
=
models
.
IntegerField
()
birth_name
=
models
.
CharField
(
max_length
=
50
)
bio
=
models
.
CharField
(
max_length
=
700
)
birth_name
=
models
.
CharField
(
max_length
=
50
,
default
=
""
)
bio
=
models
.
CharField
(
max_length
=
700
,
default
=
""
)
class
Album
(
models
.
Model
):
...
...
@@ -13,8 +13,8 @@ class Album(models.Model):
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
description
=
models
.
CharField
(
max_length
=
1000
)
release_date
=
models
.
DateField
()
label
=
models
.
CharField
(
max_length
=
50
)
song_count
=
models
.
IntegerField
()
label
=
models
.
CharField
(
max_length
=
50
,
default
=
""
)
song_count
=
models
.
IntegerField
(
default
=
0
)
class
Song
(
models
.
Model
):
...
...
@@ -22,6 +22,6 @@ class Song(models.Model):
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
)
song_length
=
models
.
TimeField
()
music_video
=
models
.
BooleanField
()
lyrics
=
models
.
CharField
(
max_length
=
2500
)
music_video
=
models
.
BooleanField
(
default
=
False
)
lyrics
=
models
.
CharField
(
max_length
=
2500
,
default
=
""
)
# Create your models here.
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