Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jaysonlim_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
Jayson Lim
jaysonlim_music
Commits
5c79c170
Commit
5c79c170
authored
Feb 21, 2023
by
Jayson Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the Field options of certain attributes
parent
c6d22020
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
models.py
envLAB01/jaysonlim_music/Homepage/models.py
+3
-5
No files found.
envLAB01/jaysonlim_music/Homepage/models.py
View file @
5c79c170
...
@@ -3,7 +3,7 @@ from django.db import models
...
@@ -3,7 +3,7 @@ from django.db import models
class
Artist
(
models
.
Model
):
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
255
)
artist_name
=
models
.
CharField
(
max_length
=
255
)
monthly_listeners
=
models
.
IntegerField
()
monthly_listeners
=
models
.
IntegerField
()
birth_name
=
models
.
CharField
(
max_length
=
255
)
birth_name
=
models
.
CharField
(
max_length
=
255
,
default
=
True
)
bio
=
models
.
TextField
(
null
=
True
,
blank
=
True
)
bio
=
models
.
TextField
(
null
=
True
,
blank
=
True
)
class
Album
(
models
.
Model
):
class
Album
(
models
.
Model
):
...
@@ -11,8 +11,8 @@ class Album(models.Model):
...
@@ -11,8 +11,8 @@ class Album(models.Model):
artist
=
models
.
CharField
(
max_length
=
255
)
artist
=
models
.
CharField
(
max_length
=
255
)
description
=
models
.
CharField
(
max_length
=
255
)
description
=
models
.
CharField
(
max_length
=
255
)
release_date
=
models
.
CharField
(
max_length
=
255
)
release_date
=
models
.
CharField
(
max_length
=
255
)
label
=
models
.
CharField
(
max_length
=
255
)
label
=
models
.
CharField
(
max_length
=
255
,
default
=
True
)
song_count
=
models
.
IntegerField
()
song_count
=
models
.
IntegerField
(
default
=
True
)
class
Song
(
models
.
Model
):
class
Song
(
models
.
Model
):
song_title
=
models
.
CharField
(
max_length
=
255
)
song_title
=
models
.
CharField
(
max_length
=
255
)
...
@@ -21,5 +21,3 @@ class Song(models.Model):
...
@@ -21,5 +21,3 @@ class Song(models.Model):
song_length
=
models
.
IntegerField
()
song_length
=
models
.
IntegerField
()
music_video
=
models
.
BooleanField
(
default
=
True
)
music_video
=
models
.
BooleanField
(
default
=
True
)
lyrics
=
models
.
TextField
(
null
=
True
,
blank
=
True
)
lyrics
=
models
.
TextField
(
null
=
True
,
blank
=
True
)
# 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