Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rjconanan_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
Raul Jarod Conanan
rjconanan_music
Commits
390c17d0
Commit
390c17d0
authored
Feb 13, 2023
by
RJC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added song_length field to song model
parent
4d1e39d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
0002_song_song_length.py
homepage/migrations/0002_song_song_length.py
+18
-0
models.py
homepage/models.py
+1
-0
No files found.
homepage/migrations/0002_song_song_length.py
0 → 100644
View file @
390c17d0
# Generated by Django 3.2 on 2023-02-13 11:58
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'homepage'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'song_length'
,
field
=
models
.
IntegerField
(
null
=
True
),
),
]
homepage/models.py
View file @
390c17d0
...
...
@@ -17,6 +17,7 @@ class Song(models.Model):
song_title
=
models
.
CharField
(
max_length
=
255
,
null
=
True
)
artist
=
models
.
ForeignKey
(
Artist
,
related_name
=
'song'
,
on_delete
=
models
.
CASCADE
,
null
=
True
)
album
=
models
.
ForeignKey
(
Album
,
related_name
=
'song'
,
on_delete
=
models
.
CASCADE
,
null
=
True
)
song_length
=
models
.
IntegerField
(
null
=
True
)
...
...
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