Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
anchisilang_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
Anchilla Vera Marie Silang
anchisilang_music
Commits
4d561e2b
Commit
4d561e2b
authored
Feb 20, 2023
by
Anchilla Vera Marie Silang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrated Models
parent
390def2b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
0 deletions
+61
-0
admin.cpython-38.pyc
anchisilang_music/homepage/__pycache__/admin.cpython-38.pyc
+0
-0
models.cpython-38.pyc
anchisilang_music/homepage/__pycache__/models.cpython-38.pyc
+0
-0
admin.py
anchisilang_music/homepage/admin.py
+13
-0
0001_initial.py
anchisilang_music/homepage/migrations/0001_initial.py
+48
-0
0001_initial.cpython-38.pyc
...mepage/migrations/__pycache__/0001_initial.cpython-38.pyc
+0
-0
No files found.
anchisilang_music/homepage/__pycache__/admin.cpython-38.pyc
View file @
4d561e2b
No preview for this file type
anchisilang_music/homepage/__pycache__/models.cpython-38.pyc
View file @
4d561e2b
No preview for this file type
anchisilang_music/homepage/admin.py
View file @
4d561e2b
from
django.contrib
import
admin
from
.models
import
Artist
,
Album
,
Song
# Register your models here.
class
ArtistAdmin
(
admin
.
ModelAdmin
):
model
=
Artist
class
AlbumAdmin
(
admin
.
ModelAdmin
):
model
=
Album
class
SongAdmin
(
admin
.
ModelAdmin
):
model
=
Song
admin
.
site
.
register
(
Artist
,
ArtistAdmin
)
admin
.
site
.
register
(
Album
,
AlbumAdmin
)
admin
.
site
.
register
(
Song
,
SongAdmin
)
anchisilang_music/homepage/migrations/0001_initial.py
0 → 100644
View file @
4d561e2b
# Generated by Django 3.2 on 2023-02-20 14:34
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Album'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'album_name'
,
models
.
CharField
(
max_length
=
50
)),
(
'artist'
,
models
.
CharField
(
max_length
=
50
)),
(
'description'
,
models
.
TextField
()),
(
'release_date'
,
models
.
DateTimeField
()),
(
'label'
,
models
.
TextField
()),
(
'song_count'
,
models
.
IntegerField
()),
],
),
migrations
.
CreateModel
(
name
=
'Artist'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'artist_name'
,
models
.
CharField
(
max_length
=
50
)),
(
'birth_name'
,
models
.
TextField
()),
(
'monthly_listeners'
,
models
.
IntegerField
()),
(
'bio'
,
models
.
CharField
(
max_length
=
700
)),
],
),
migrations
.
CreateModel
(
name
=
'Song'
,
fields
=
[
(
'id'
,
models
.
BigAutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'song_title'
,
models
.
CharField
(
max_length
=
50
)),
(
'song_length'
,
models
.
IntegerField
()),
(
'lyrics'
,
models
.
TextField
()),
(
'music_video'
,
models
.
BooleanField
()),
(
'artist'
,
models
.
CharField
(
max_length
=
50
)),
(
'album'
,
models
.
CharField
(
max_length
=
50
)),
],
),
]
anchisilang_music/homepage/migrations/__pycache__/0001_initial.cpython-38.pyc
0 → 100644
View file @
4d561e2b
File added
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