Commit fe29d113 authored by Brian Guadalupe's avatar Brian Guadalupe

Change playlist FK to `auth.User`

parent a73115da
from django.db import models from django.db import models
from core.models import * from core.models import *
from user.models import * from django.contrib.auth.models import User
class MusicPlaylist(models.Model): class MusicPlaylist(models.Model):
id = models.AutoField(primary_key=True) id = models.AutoField(primary_key=True)
playlist_name = models.CharField(max_length=32) playlist_name = models.CharField(max_length=32)
is_public = models.BooleanField(default=False) is_public = models.BooleanField(default=False)
user = models.ForeignKey(UserAccount) user = models.ForeignKey(User)
def __str__(self): def __str__(self):
return self.playlist_name return self.playlist_name
......
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