It's the traversing the multiple relations in my template I'm having
trouble with, my models are something similar too:
Team(id, name, squad, manager,,)
Fixture(id, team_id, date, opposition, location)
Result(id, fixture_id, home_score, away_score)
In my Team_Details.html template
I'm
Thank you for the pointer Malcom,
however you are only using 2 tables/classes (Player which is directly
related to Match)
The problem I am having is because I am using 3 tables/classes (Team
is related to fixture, Fixture is related to Result) so I do not know
how to get around that without
On Wed, 2007-03-14 at 04:20 -0700, DuncanM wrote:
> Thank you for the pointer Malcom,
> however you are only using 2 tables/classes (Player which is directly
> related to Match)
> The problem I am having is because I am using 3 tables/classes (Team
> is related to fixture, Fixture is related to
Thats the problem, I have no idea where to start with it, so do not
have any current code for it, or any errors.
Duncan
On Mar 14, 3:42 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Can you post your current code...and the error you are receiving?
>
> On Mar 13, 7:13 pm, "DuncanM"
On Wed, 2007-03-14 at 00:13 +, DuncanM wrote:
> I have a schema as follows:
[...]
> How would I get it so I had a template that showed:
> Result
> Team A 0 - 3 Team B 22/03/07
>
>
> e.g. the homeTeam and awayTeam are pulled from Fixture, which pulls
> from Team, and Date is pulled from
Can you post your current code...and the error you are receiving?
On Mar 13, 7:13 pm, "DuncanM" <[EMAIL PROTECTED]> wrote:
> I have a schema as follows:
>
> Team
> Fixture
> Result
> =
> ====
> id
> id
> id
> name
> homeTeam
I have a schema as follows:
Team
Fixture
Result
=
====
id
id
id
name
homeTeam fixture_id
.
awayTeam homeScore
date
awayScore
7 matches
Mail list logo