On Thursday, 22 March 2012 01:12:21 UTC-7, Jam wrote:
>
> Hi All,
>
> I have a model where it can link to itself using ForeignKey('self'). This 
> is so I can have parent and child objects.
>
> I have called the parent and in the template I want to be able to access 
> all the child objects.
>
> I have been using the _set.all template command on the field but it 
> returns no results.
>
> Any ideas why this would happen? This is the first time I have used 
> ForeignKey('self') so I am a bit clueless.
>
> Thank you all
> Jamie
>

You'll need to be a bit more specific. Please show your model, and the 
exact template code you are using. 
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/484iTAEhTToJ.
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.

Reply via email to