Only call QuerySet methods on an actual QuerySet
Merge pull request #756 from drkitty/fix-network-detail-view

Fix detail view for Networks with parents or children