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
)
10 unique_together
= ('user', 'podcast')
11 db_table
= 'publisher'