Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eldondagdag_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
Eldon Dagdag
eldondagdag_music
Commits
9a18b821
Commit
9a18b821
authored
Feb 20, 2023
by
Eldon Dagdag
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated and Added Attributes in Models
parent
14474cbf
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
103 additions
and
9 deletions
+103
-9
.DS_Store
.DS_Store
+0
-0
db.sqlite3
eldondagdag_music/db.sqlite3
+0
-0
models.cpython-310.pyc
...ndagdag_music/homepage/__pycache__/models.cpython-310.pyc
+0
-0
0002_auto_20230220_0717.py
...gdag_music/homepage/migrations/0002_auto_20230220_0717.py
+88
-0
0002_auto_20230220_0717.cpython-310.pyc
...tions/__pycache__/0002_auto_20230220_0717.cpython-310.pyc
+0
-0
models.py
eldondagdag_music/homepage/models.py
+15
-9
No files found.
.DS_Store
View file @
9a18b821
No preview for this file type
eldondagdag_music/db.sqlite3
View file @
9a18b821
No preview for this file type
eldondagdag_music/homepage/__pycache__/models.cpython-310.pyc
View file @
9a18b821
No preview for this file type
eldondagdag_music/homepage/migrations/0002_auto_20230220_0717.py
0 → 100644
View file @
9a18b821
# Generated by Django 3.2 on 2023-02-20 07:17
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
=
255
),
),
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'song_count'
,
field
=
models
.
IntegerField
(
default
=
0
),
),
migrations
.
AddField
(
model_name
=
'artist'
,
name
=
'bio'
,
field
=
models
.
TextField
(
blank
=
True
,
default
=
''
,
max_length
=
700
),
),
migrations
.
AddField
(
model_name
=
'artist'
,
name
=
'birth_name'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
255
),
),
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
.
AlterField
(
model_name
=
'album'
,
name
=
'album_name'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
255
),
),
migrations
.
AlterField
(
model_name
=
'album'
,
name
=
'artist'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
255
),
),
migrations
.
AlterField
(
model_name
=
'album'
,
name
=
'description'
,
field
=
models
.
TextField
(
default
=
''
),
),
migrations
.
AlterField
(
model_name
=
'artist'
,
name
=
'artist_name'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
255
),
),
migrations
.
AlterField
(
model_name
=
'artist'
,
name
=
'monthly_listeners'
,
field
=
models
.
IntegerField
(
default
=
0
),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'album'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
255
),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'artist'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
255
),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'song_length'
,
field
=
models
.
IntegerField
(
default
=
0
),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'song_title'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
255
),
),
]
eldondagdag_music/homepage/migrations/__pycache__/0002_auto_20230220_0717.cpython-310.pyc
0 → 100644
View file @
9a18b821
File added
eldondagdag_music/homepage/models.py
View file @
9a18b821
from
django.db
import
models
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
100
)
monthly_listeners
=
models
.
IntegerField
()
artist_name
=
models
.
CharField
(
max_length
=
255
,
default
=
""
)
birth_name
=
models
.
CharField
(
max_length
=
255
,
default
=
""
)
monthly_listeners
=
models
.
IntegerField
(
default
=
0
)
bio
=
models
.
TextField
(
max_length
=
700
,
blank
=
True
,
default
=
""
)
class
Album
(
models
.
Model
):
album_name
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
CharField
(
max_length
=
100
)
description
=
models
.
CharField
(
max_length
=
500
)
album_name
=
models
.
CharField
(
max_length
=
255
,
default
=
""
)
artist
=
models
.
CharField
(
max_length
=
255
,
default
=
""
)
description
=
models
.
TextField
(
default
=
""
)
release_date
=
models
.
DateField
()
label
=
models
.
CharField
(
max_length
=
255
,
default
=
""
)
song_count
=
models
.
IntegerField
(
default
=
0
)
class
Song
(
models
.
Model
):
song_title
=
models
.
CharField
(
max_length
=
100
)
artist
=
models
.
CharField
(
max_length
=
100
)
album
=
models
.
CharField
(
max_length
=
100
)
song_length
=
models
.
IntegerField
()
song_title
=
models
.
CharField
(
max_length
=
255
,
default
=
""
)
artist
=
models
.
CharField
(
max_length
=
255
,
default
=
""
)
album
=
models
.
CharField
(
max_length
=
255
,
default
=
""
)
song_length
=
models
.
IntegerField
(
default
=
0
)
music_video
=
models
.
BooleanField
(
default
=
False
)
lyrics
=
models
.
TextField
(
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