commit to CouchDB only when necessary
[mygpo.git] / mygpo / publisher / models.py
blob92e7437d2c6120980423ef02342f65ec45d5a3b8
1 from django.db import models
2 from django.contrib.auth.models import User
3 from mygpo.api.models import Podcast
5 class PodcastPublisher(models.Model):
6 user = models.ForeignKey(User)
7 podcast = models.ForeignKey(Podcast)
9 class Meta:
10 unique_together = ('user', 'podcast')
11 db_table = 'publisher'
12 managed = False