hey,
i want to use 2 model in one foreignkey
it means;
i have 2 model named screencasts and articles. and i have a fave model, for favouriting this model entrys. can i use model dynamicly ?
class Articles(models.Model):
title = models.CharField(max_length=100)
body = models.TextField()
class Casts(models.Model):
title = models.CharField(max_length=100)
body = models.TextField()
class Faves(models.Model):
post = models.ForeignKey(**---CASTS-OR-ARTICLES---**)
user = models.ForeignKey(User,unique=True)
is it possible ?