i want to use 2 model in one foreignkey, i think its dynamic
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 ?

thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to