Commit aa70eaee authored by Jayson Lim's avatar Jayson Lim

changed to the appropriate fields in the Artist and Song classes

parent afc3a87f
Pipeline #2734 failed with stages
...@@ -3,8 +3,4 @@ from django.shortcuts import render ...@@ -3,8 +3,4 @@ from django.shortcuts import render
from django.http import HttpResponse from django.http import HttpResponse
def index(request): def index(request):
return HttpResponse("I'm Jayson Lim, a 2nd year BS Computer Science student. My favorite music genres are pop, hip hop, and rock") return HttpResponse("I'm Jayson Lim, a 2nd year BS Computer Science student. My favorite music genres are pop, hip hop, and rock.")
\ No newline at end of file
# Create your views here.
...@@ -2,7 +2,7 @@ from django.db import models ...@@ -2,7 +2,7 @@ from django.db import models
class Artist(models.Model): class Artist(models.Model):
artist_name = models.CharField(max_length=255) artist_name = models.CharField(max_length=255)
monthly_listeners = models.CharField(max_length=255) monthly_listeners = models.IntegerField()
class Album(models.Model): class Album(models.Model):
album_name = models.CharField(max_length=255) album_name = models.CharField(max_length=255)
...@@ -14,6 +14,6 @@ class Song(models.Model): ...@@ -14,6 +14,6 @@ class Song(models.Model):
song_title = models.CharField(max_length=255) song_title = models.CharField(max_length=255)
artist = models.CharField(max_length=255) artist = models.CharField(max_length=255)
album = models.CharField(max_length=255) album = models.CharField(max_length=255)
song_length = models.CharField(max_length=255) song_length = models.IntegerField()
# Create your models here. # Create your models here.
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