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, jorr...@gmail.com
> 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 email@example.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.