First commit of the V2.
New base, new info.
This commit is contained in:
11
music/models.py
Normal file
11
music/models.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Songs(models.Model):
|
||||
# song title
|
||||
title = models.CharField(max_length=255, null=False)
|
||||
# name of artist or group/band
|
||||
artist = models.CharField(max_length=255, null=False)
|
||||
|
||||
def __str__(self):
|
||||
return "{} - {}".format(self.title, self.artist)
|
Reference in New Issue
Block a user