Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nich_pardines_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
Nicholo Patrick C. Pardines
nich_pardines_music
Commits
3d73e3b5
Commit
3d73e3b5
authored
Feb 20, 2023
by
Nicholo Pardines
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed song_count field default value by setting it to 0
parent
5f86b74b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
models.cpython-38.pyc
homepage/__pycache__/models.cpython-38.pyc
+0
-0
0003_alter_album_song_count.py
homepage/migrations/0003_alter_album_song_count.py
+18
-0
0002_album_label_album_song_count_artist_bio_and_more.cpython-38.pyc
...label_album_song_count_artist_bio_and_more.cpython-38.pyc
+0
-0
models.py
homepage/models.py
+1
-1
No files found.
homepage/__pycache__/models.cpython-38.pyc
View file @
3d73e3b5
No preview for this file type
homepage/migrations/0003_alter_album_song_count.py
0 → 100644
View file @
3d73e3b5
# Generated by Django 4.1.6 on 2023-02-20 06:54
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
=
'song_count'
,
field
=
models
.
IntegerField
(
default
=
0
),
),
]
homepage/migrations/__pycache__/0002_album_label_album_song_count_artist_bio_and_more.cpython-38.pyc
0 → 100644
View file @
3d73e3b5
File added
homepage/models.py
View file @
3d73e3b5
...
@@ -28,7 +28,7 @@ class Album(models.Model):
...
@@ -28,7 +28,7 @@ class Album(models.Model):
description
=
models
.
CharField
(
max_length
=
50
)
description
=
models
.
CharField
(
max_length
=
50
)
release_date
=
models
.
DateField
()
release_date
=
models
.
DateField
()
label
=
models
.
CharField
(
max_length
=
60
,
default
=
"TBA"
)
label
=
models
.
CharField
(
max_length
=
60
,
default
=
"TBA"
)
song_count
=
models
.
IntegerField
(
default
=
"TBA"
)
song_count
=
models
.
IntegerField
(
default
=
0
)
class
Song
(
models
.
Model
):
class
Song
(
models
.
Model
):
song_title
=
models
.
CharField
(
max_length
=
50
,
default
=
"TBA"
)
song_title
=
models
.
CharField
(
max_length
=
50
,
default
=
"TBA"
)
...
...
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