this is my models.py from django.db import models
# Create your models here. class Leagues(models.Model): LeagueName = models.CharField(max_length=200) class Team(models.Model): TeamName = models.CharField(max_length=200) class LeagueTable(models.Model): league = models.ForeignKey(Leagues) team = models.CharField(max_length=200) matches_played = models.IntegerField() matches_won = models.IntegerField() matches_drawn = models.IntegerField() matches_lost = models.IntegerField() points = models.IntegerField() class FixtureTable(models.Model): league = models.ForeignKey(Leagues) fixture_date = models.DateField('Fixture Date') team_one = models.CharField(max_length=200) team_one_score = models.IntegerField() team_two = models.CharField(max_length=200) team_two_score = models.IntegerField() in the "class FixtureTable", i want team_one and team_two to be linked to two differnt teams in "class Team" models. how to create multiple relations, or is it possible. PS: this is purely a noob, with a little experience in programming, but no experience with either python or databases. PPS: I found that the best way to learn is to create your own problem, and solve the problem in parallel while following the tutorial. so i am just stuck in the beginning. thankyou. thankyou. -- 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.