model.foreignkey_set returns a manager while model.foreignkey_set.all 
returns a QuerySet.

On Thursday, September 22, 2016 at 7:09:27 AM UTC-4, 
> I have a question about using *model.foreignkey_set* in Django templates. 
> I was trying to use *model.foreignkey_set* to determine if there were any 
> foreign keys for this model, but it appears that *model.foreignkey_set* 
> returns something different than *model.foreignkey_set.all* - why is 
> that? Shouldn't both return *None* if there are no foreign keys?
> Just curious :)

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

Reply via email to