Hello *,

I've encountered a problem. I have a Match (football) which contains
relationship one-to-many with Goals.

class Match(models.Model):
    title = models.CharField(max_length=150)
    body = models.TextField()
    ...

class Goal(models.Model):
    player = models.ForeignKey(Player)
    moment = models.DateTimeField()
    match = models.ForeignKey(Match)


What is the easiest\smartest way to enable adding Goals from Match
page ? I've read about Inline, but it doesnt works, because in this
way we will have loop import.

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-us...@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