Hi Russell

I'm very grateful for your advice; its now working.

Many thanks
Rory

On 08/12/06, Russell Keith-Magee ([EMAIL PROTECTED]) wrote:
> On 12/8/06, Rory Campbell-Lange <[EMAIL PROTECTED]> wrote:

> Your SiteEnergy model doesn't have an 'energy' field. The relation
> with the Energy model is kept in a relation called "typer". Therefore,
> you need to use typer__isoffsite to reference the property on the
> related model.
> 
> Related note: if you were to query the Energy object, you _would_ use
> the model name in your query:

-- 
Rory Campbell-Lange 
<[EMAIL PROTECTED]>
<www.campbell-lange.net>

--~--~---------~--~----~------------~-------~--~----~
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to