Commit 85dc1812 authored by John Riz Daniel Ramos's avatar John Riz Daniel Ramos

Model Population + Minor model changes in homepage

parent 0fe705a5
......@@ -12,13 +12,13 @@ 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')
list_filter = ('album_name',)
class SongAdmin(admin.ModelAdmin):
model = Song
list_display = ('song_title', 'song_length', 'lyrics', 'music_video')
search_fields = ('song_title', 'lyrics')
list_filter = ('song_title')
list_filter = ('song_title',)
admin.site.register(Artist, ArtistAdmin)
......
......@@ -5,20 +5,20 @@ class Artist(models.Model):
artist_name = models.CharField(max_length=50, unique=True)
monthly_listeners = models.IntegerField()
birth_name = models.CharField(max_length=50, blank=True)
bio = models.CharField(max_length=700, blank=True)
bio = models.TextField(blank=True)
class Album(models.Model):
album_name = models.CharField(max_length=50)
artist = models.CharField(max_length=50)
description = models.CharField(max_length=150, unique=True)
description = models.TextField(unique=True)
release_date = models.CharField(max_length=50)
label = models.CharField(max_length=50, blank=True)
song_count = models.IntegerField(default='1')
class Song(models.Model):
song_title = models.CharField(max_length=50)
song_title = models.CharField(max_length=100)
artist = models.CharField(max_length=50)
album = models.CharField(max_length=150)
song_length = models.IntegerField(verbose_name="SONG LENGTH (in secs.)")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment