# Path: feeds/models.py
# class Entry(models.Model):
#     title = models.CharField(max_length=200)
#     link = models.CharField(max_length=1000)
#     feed = models.ForeignKey(to=Feed)
#     published = models.DateTimeField()
# 
#     def __unicode__(self):
#         return u'{}: {}'.format(self.feed, self.title)
# 
# class Feed(models.Model):
#     title = models.CharField(max_length=200)
#     link = models.CharField(max_length=1000)
# 
#     def __unicode__(self):
#         return self.title


from django.db import models
from django.contrib.auth.models import User
from randomslug.models import RandomSlugField
from feeds.models import Entry, Feed



class UserProfile(models.Model):
    """A user profile."""
    user = models.ForeignKey(User)
    feeds = models.ManyToManyField(to=Feed, through='profiles.Subscription')

# Path: feeds/models.py
# class Entry(models.Model):
#     title = models.CharField(max_length=200)
#     link = models.CharField(max_length=1000)
#     feed = models.ForeignKey(to=Feed)
#     published = models.DateTimeField()
# 
#     def __unicode__(self):
#         return u'{}: {}'.format(self.feed, self.title)
# 
# class Feed(models.Model):
#     title = models.CharField(max_length=200)
#     link = models.CharField(max_length=1000)
# 
#     def __unicode__(self):
#         return self.title


# Path: profiles/models.py
from django.db import models
from django.contrib.auth.models import User
from randomslug.models import RandomSlugField
from feeds.models import Entry, Feed




class UserProfile(models.Model):
    """A user profile."""
    user = models.ForeignKey(User)
    feeds = models.ManyToManyField(to=Feed, through='profiles.Subscription')

    entries = models.ManyToManyField(to=Entry,