Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
brevinque_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
Nate Brevin A. Que
brevinque_music
Commits
9c106e36
Commit
9c106e36
authored
Feb 20, 2023
by
Nate Brevin A. Que
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added label and song_count fields to the Album Model.
parent
f201b1df
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
0 deletions
+25
-0
db.sqlite3
brevinque_music/db.sqlite3
+0
-0
models.cpython-311.pyc
brevinque_music/homepage/__pycache__/models.cpython-311.pyc
+0
-0
0003_auto_20230220_1243.py
...nque_music/homepage/migrations/0003_auto_20230220_1243.py
+23
-0
0003_auto_20230220_1243.cpython-311.pyc
...tions/__pycache__/0003_auto_20230220_1243.cpython-311.pyc
+0
-0
models.py
brevinque_music/homepage/models.py
+2
-0
No files found.
brevinque_music/db.sqlite3
View file @
9c106e36
No preview for this file type
brevinque_music/homepage/__pycache__/models.cpython-311.pyc
View file @
9c106e36
No preview for this file type
brevinque_music/homepage/migrations/0003_auto_20230220_1243.py
0 → 100644
View file @
9c106e36
# Generated by Django 3.2 on 2023-02-20 04:43
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0002_auto_20230220_1240'
),
]
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
=
1
),
),
]
brevinque_music/homepage/migrations/__pycache__/0003_auto_20230220_1243.cpython-311.pyc
0 → 100644
View file @
9c106e36
File added
brevinque_music/homepage/models.py
View file @
9c106e36
...
...
@@ -13,6 +13,8 @@ class Album(models.Model):
artist
=
models
.
ForeignKey
(
Artist
,
on_delete
=
models
.
CASCADE
)
description
=
models
.
CharField
(
max_length
=
255
)
release_date
=
models
.
DateField
()
label
=
models
.
CharField
(
max_length
=
50
,
default
=
""
)
song_count
=
models
.
IntegerField
(
default
=
1
)
class
Song
(
models
.
Model
):
...
...
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