Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
garethcastillo_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
Gareth Xerxes Yap Castillo
garethcastillo_music
Commits
8c2fc0a8
Commit
8c2fc0a8
authored
Feb 21, 2023
by
Gareth Xerxes Yap Castillo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed models for the final time
parent
b3f05a79
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
1 deletion
+22
-1
models.cpython-39.pyc
...castillo_music/Homepage/__pycache__/models.cpython-39.pyc
+0
-0
0003_alter_song_lyrics.py
...tillo_music/Homepage/migrations/0003_alter_song_lyrics.py
+18
-0
0003_alter_song_lyrics.cpython-39.pyc
...rations/__pycache__/0003_alter_song_lyrics.cpython-39.pyc
+0
-0
models.py
garethcastillo_music/Homepage/models.py
+4
-1
db.sqlite3
garethcastillo_music/db.sqlite3
+0
-0
No files found.
garethcastillo_music/Homepage/__pycache__/models.cpython-39.pyc
View file @
8c2fc0a8
No preview for this file type
garethcastillo_music/Homepage/migrations/0003_alter_song_lyrics.py
0 → 100644
View file @
8c2fc0a8
# Generated by Django 4.1.6 on 2023-02-21 14:11
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'Homepage'
,
'0002_alter_album_album_name_alter_album_description_and_more'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'lyrics'
,
field
=
models
.
TextField
(
default
=
''
,
max_length
=
2000
),
),
]
garethcastillo_music/Homepage/migrations/__pycache__/0003_alter_song_lyrics.cpython-39.pyc
0 → 100644
View file @
8c2fc0a8
File added
garethcastillo_music/Homepage/models.py
View file @
8c2fc0a8
...
@@ -29,4 +29,7 @@ class Song(models.Model):
...
@@ -29,4 +29,7 @@ class Song(models.Model):
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
)
song_length
=
models
.
IntegerField
(
default
=
0
)
song_length
=
models
.
IntegerField
(
default
=
0
)
music_video
=
models
.
BooleanField
(
default
=
True
)
music_video
=
models
.
BooleanField
(
default
=
True
)
lyrics
=
models
.
TextField
(
max_length
=
1000
,
default
=
default_string
)
lyrics
=
models
.
TextField
(
max_length
=
2000
,
default
=
default_string
)
\ No newline at end of file
def
__str__
(
self
):
return
'{}'
.
format
(
self
.
song_title
)
\ No newline at end of file
garethcastillo_music/db.sqlite3
View file @
8c2fc0a8
No preview for this file type
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