Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Neptune_Sy_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
Star Neptune R. Sy
Neptune_Sy_music
Commits
a2022102
Commit
a2022102
authored
Feb 23, 2023
by
Star Neptune R. Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final migrations and populated data
parent
9edcf77c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
82 additions
and
3 deletions
+82
-3
0003_auto_20230223_2126.py
Neptune_Sy_music/about/migrations/0003_auto_20230223_2126.py
+24
-0
0004_auto_20230223_2128.py
Neptune_Sy_music/about/migrations/0004_auto_20230223_2128.py
+24
-0
0005_auto_20230223_2226.py
Neptune_Sy_music/about/migrations/0005_auto_20230223_2226.py
+24
-0
models.py
Neptune_Sy_music/about/models.py
+10
-3
No files found.
Neptune_Sy_music/about/migrations/0003_auto_20230223_2126.py
0 → 100644
View file @
a2022102
# Generated by Django 3.2 on 2023-02-23 13:26
import
datetime
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'about'
,
'0002_auto_20230223_2103'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'album'
,
name
=
'release_date'
,
field
=
models
.
DateField
(
default
=
datetime
.
datetime
(
2023
,
2
,
23
,
21
,
26
,
3
,
151069
)),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'song_length'
,
field
=
models
.
TimeField
(
default
=
datetime
.
datetime
(
2023
,
2
,
23
,
21
,
26
,
3
,
152069
)),
),
]
Neptune_Sy_music/about/migrations/0004_auto_20230223_2128.py
0 → 100644
View file @
a2022102
# Generated by Django 3.2 on 2023-02-23 13:28
import
datetime
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'about'
,
'0003_auto_20230223_2126'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'album'
,
name
=
'release_date'
,
field
=
models
.
DateField
(
default
=
datetime
.
datetime
(
2023
,
2
,
23
,
21
,
28
,
11
,
339665
)),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'song_length'
,
field
=
models
.
TimeField
(
default
=
datetime
.
datetime
(
2023
,
2
,
23
,
21
,
28
,
11
,
340672
)),
),
]
Neptune_Sy_music/about/migrations/0005_auto_20230223_2226.py
0 → 100644
View file @
a2022102
# Generated by Django 3.2 on 2023-02-23 14:26
import
datetime
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'about'
,
'0004_auto_20230223_2128'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'album'
,
name
=
'release_date'
,
field
=
models
.
DateField
(
default
=
datetime
.
datetime
(
2023
,
2
,
23
,
22
,
26
,
28
,
608294
)),
),
migrations
.
AlterField
(
model_name
=
'song'
,
name
=
'song_length'
,
field
=
models
.
TimeField
(
default
=
datetime
.
datetime
(
2023
,
2
,
23
,
22
,
26
,
28
,
609292
)),
),
]
Neptune_Sy_music/about/models.py
View file @
a2022102
...
...
@@ -7,7 +7,9 @@ class Artist(models.Model):
monthly_listeners
=
models
.
IntegerField
(
default
=
1
)
birth_name
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
,
blank
=
True
,)
bio
=
models
.
TextField
(
blank
=
True
,)
pass
def
__str__
(
self
):
return
self
.
artist_name
class
Album
(
models
.
Model
):
...
...
@@ -21,7 +23,9 @@ class Album(models.Model):
release_date
=
models
.
DateField
(
default
=
datetime
.
datetime
.
today
())
label
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
,
blank
=
True
,)
song_count
=
models
.
IntegerField
(
blank
=
True
,)
pass
def
__str__
(
self
):
return
self
.
album_name
class
Song
(
models
.
Model
):
...
...
@@ -39,4 +43,7 @@ class Song(models.Model):
)
song_length
=
models
.
TimeField
(
default
=
datetime
.
datetime
.
now
())
music_video
=
models
.
BooleanField
(
default
=
False
)
lyrics
=
models
.
TextField
(
blank
=
True
,)
\ No newline at end of file
lyrics
=
models
.
TextField
(
blank
=
True
,)
def
__str__
(
self
):
return
self
.
song_title
\ No newline at end of file
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