On Jun 15, 6:43 am, Saikek <[email protected]> wrote: > 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.
Why doesn't inline work? Why do you think you will have a loop import? Be specific. After all this is the classic use case for inline admin forms. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

