Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rachpurisima_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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rachel
rachpurisima_music
Commits
8a2ced8b
Commit
8a2ced8b
authored
Feb 20, 2023
by
rachbit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated models.py attributes
parent
a7e712c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
README.txt
README.txt
+3
-3
models.py
rachpurisima_music/homepage/models.py
+6
-0
No files found.
README.txt
View file @
8a2ced8b
...
@@ -3,11 +3,11 @@ Rachel Angelique S. Purisima
...
@@ -3,11 +3,11 @@ Rachel Angelique S. Purisima
2 BSMS CS
2 BSMS CS
CSCI 40-E
CSCI 40-E
Lab
1 - Song Library
Lab
2 - Song Library v2
February
13
, 2023
February
20
, 2023
This lab activity was truthfully completed by me, Rachel Purisima.
This lab activity was truthfully completed by me, Rachel Purisima.
<sgd>
<sgd>
Rachel Angelique S. Purisima
Rachel Angelique S. Purisima
February
13
, 2023
February
20
, 2023
rachpurisima_music/homepage/models.py
View file @
8a2ced8b
...
@@ -6,6 +6,8 @@ from django.db import models
...
@@ -6,6 +6,8 @@ from django.db import models
class
Artist
(
models
.
Model
):
class
Artist
(
models
.
Model
):
artist_name
=
models
.
TextField
()
artist_name
=
models
.
TextField
()
monthly_listeners
=
models
.
IntegerField
()
monthly_listeners
=
models
.
IntegerField
()
birth_name
=
models
.
TextField
()
bio
=
models
.
CharField
(
max_length
=
700
)
class
Album
(
models
.
Model
):
class
Album
(
models
.
Model
):
...
@@ -13,6 +15,8 @@ class Album(models.Model):
...
@@ -13,6 +15,8 @@ class Album(models.Model):
artist
=
models
.
TextField
()
artist
=
models
.
TextField
()
description
=
models
.
TextField
()
description
=
models
.
TextField
()
release_date
=
models
.
DateField
()
release_date
=
models
.
DateField
()
label
=
models
.
TextField
()
song_count
=
models
.
IntegerField
()
class
Song
(
models
.
Model
):
class
Song
(
models
.
Model
):
...
@@ -20,3 +24,5 @@ class Song(models.Model):
...
@@ -20,3 +24,5 @@ class Song(models.Model):
artist
=
models
.
TextField
()
artist
=
models
.
TextField
()
album
=
models
.
TextField
()
album
=
models
.
TextField
()
song_length
=
models
.
IntegerField
()
song_length
=
models
.
IntegerField
()
music_video
=
models
.
BooleanField
(
default
=
False
)
lyrics
=
models
.
TextField
()
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