Commit 67c5f265 authored by Brian Guadalupe's avatar Brian Guadalupe

Add E

parent 9d2cd971
from django.db import models
from django.contrib.auth.models import User
from playlist.models import *
class Tag(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=32)
tag = models.ManyToManyField(MusicEntry)
def __str__(self):
return self.name
\ No newline at end of file
return self.name
class TagEntry(models.Model):
tag = models.ForeignKey(Tag)
music_entry = models.ForeignKey(MusicEntry)
\ No newline at end of file
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