Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mavlee_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
Mavrick Jordan Lee
mavlee_music
Commits
b1d71559
Commit
b1d71559
authored
2 years ago
by
Mavrick Jordan Lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Typo in Admin.py of Homepage
parent
08bb0e50
master
lab02
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
admin.cpython-39.pyc
mavlee_music/homepage/__pycache__/admin.cpython-39.pyc
+0
-0
models.cpython-39.pyc
mavlee_music/homepage/__pycache__/models.cpython-39.pyc
+0
-0
admin.py
mavlee_music/homepage/admin.py
+3
-3
No files found.
mavlee_music/homepage/__pycache__/admin.cpython-39.pyc
View file @
b1d71559
No preview for this file type
This diff is collapsed.
Click to expand it.
mavlee_music/homepage/__pycache__/models.cpython-39.pyc
View file @
b1d71559
No preview for this file type
This diff is collapsed.
Click to expand it.
mavlee_music/homepage/admin.py
View file @
b1d71559
...
...
@@ -4,19 +4,19 @@ from .models import Artist, Album, Song
# Register your models here.
class
ArtistAdmin
(
admin
_
ModelAdmin
):
class
ArtistAdmin
(
admin
.
ModelAdmin
):
model
=
Artist
list_display
=
(
'artist name'
,
'birth name'
,
'monthly listeners'
)
search_fields
=
(
'artist name'
,
'birth name'
)
list_filter
=
(
'artist name'
,
'birth name'
)
class
AlbumAdmin
(
admin
_
ModelAdmin
):
class
AlbumAdmin
(
admin
.
ModelAdmin
):
model
=
Album
list_display
=
(
'album name'
,
'description'
,
'release date'
,
'label'
,
'song count'
)
search_fields
=
(
'album name'
,
'description'
,
'label'
)
list_filter
=
(
'album name'
)
class
SongAdmin
(
admin
_
ModelAdmin
):
class
SongAdmin
(
admin
.
ModelAdmin
):
model
=
Song
list_display
=
(
'song title'
,
'song length'
,
'lyrics'
,
'music video flag'
)
search_fields
=
(
'song title'
,
'lyrics'
)
...
...
This diff is collapsed.
Click to expand it.
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