Update serializers.py

Treat the input queryset as it comes (maybe it has been changed in a higher level). Evaluating .all() does nothing if or if not is a queryset.
Take in care that input data in serializer can be a Manager
Remove unnecessary hasattr all and add comment for nested relationships
Fix trailing space
Merge pull request #2241 from IvanAlegre/patch-1

Update serializers.py