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
1d0450d6
Commit
1d0450d6
authored
Feb 21, 2023
by
Star Neptune R. Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated the models. Some don't work
parent
8e31b4bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
21 deletions
+97
-21
models.cpython-39.pyc
Neptune_Sy_music/about/__pycache__/models.cpython-39.pyc
+0
-0
0004_auto_20230221_2219.py
Neptune_Sy_music/about/migrations/0004_auto_20230221_2219.py
+90
-0
models.py
Neptune_Sy_music/about/models.py
+7
-21
No files found.
Neptune_Sy_music/about/__pycache__/models.cpython-39.pyc
View file @
1d0450d6
No preview for this file type
Neptune_Sy_music/about/migrations/0004_auto_20230221_2219.py
0 → 100644
View file @
1d0450d6
# Generated by Django 3.2 on 2023-02-21 14:19
from
django.db
import
migrations
,
models
import
django.utils.timezone
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'about'
,
'0003_auto_20230217_0005'
),
]
operations
=
[
migrations
.
RemoveField
(
model_name
=
'album'
,
name
=
'album_name'
,
),
migrations
.
RemoveField
(
model_name
=
'album'
,
name
=
'artist'
,
),
migrations
.
RemoveField
(
model_name
=
'album'
,
name
=
'description'
,
),
migrations
.
RemoveField
(
model_name
=
'album'
,
name
=
'release_date'
,
),
migrations
.
RemoveField
(
model_name
=
'artist'
,
name
=
'artist_name'
,
),
migrations
.
RemoveField
(
model_name
=
'artist'
,
name
=
'monthly_listeners'
,
),
migrations
.
RemoveField
(
model_name
=
'song'
,
name
=
'album'
,
),
migrations
.
RemoveField
(
model_name
=
'song'
,
name
=
'artist'
,
),
migrations
.
RemoveField
(
model_name
=
'song'
,
name
=
'song_length'
,
),
migrations
.
RemoveField
(
model_name
=
'song'
,
name
=
'song_title'
,
),
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'label'
,
field
=
models
.
CharField
(
default
=
django
.
utils
.
timezone
.
now
,
max_length
=
50
,
unique
=
True
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'album'
,
name
=
'song_count'
,
field
=
models
.
IntegerField
(
default
=
django
.
utils
.
timezone
.
now
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'artist'
,
name
=
'bio'
,
field
=
models
.
TextField
(
default
=
django
.
utils
.
timezone
.
now
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'artist'
,
name
=
'birth_name'
,
field
=
models
.
CharField
(
default
=
django
.
utils
.
timezone
.
now
,
max_length
=
50
,
unique
=
True
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'lyrics'
,
field
=
models
.
TextField
(
default
=
django
.
utils
.
timezone
.
now
),
preserve_default
=
False
,
),
migrations
.
AddField
(
model_name
=
'song'
,
name
=
'music_video'
,
field
=
models
.
BooleanField
(
default
=
django
.
utils
.
timezone
.
now
),
preserve_default
=
False
,
),
]
Neptune_Sy_music/about/models.py
View file @
1d0450d6
...
@@ -3,31 +3,17 @@ from django.db import models
...
@@ -3,31 +3,17 @@ from django.db import models
class
Artist
(
models
.
Model
):
class
Artist
(
models
.
Model
):
artist_name
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
)
birth_name
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
)
monthly_listeners
=
models
.
Integer
Field
()
bio
=
models
.
Text
Field
()
pass
pass
class
Album
(
models
.
Model
):
class
Album
(
models
.
Model
):
album_name
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
)
label
=
models
.
CharField
(
max_length
=
50
,
unique
=
True
)
artist
=
models
.
ForeignKey
(
song_count
=
models
.
IntegerField
()
Artist
,
on_delete
=
models
.
CASCADE
,
)
description
=
models
.
CharField
(
max_length
=
500
,
unique
=
True
)
release_date
=
models
.
DateField
()
pass
class
Song
(
models
.
Model
):
class
Song
(
models
.
Model
):
song_title
=
models
.
CharField
(
max_length
=
50
)
music_video
=
models
.
BooleanField
()
artist
=
models
.
ForeignKey
(
lyrics
=
models
.
TextField
()
Artist
,
on_delete
=
models
.
CASCADE
,
related_name
=
'single'
)
album
=
models
.
ForeignKey
(
Album
,
on_delete
=
models
.
CASCADE
,
)
song_length
=
models
.
TimeField
()
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