Fixed the first and last queries for related managers
Merge branch 'master' of github.com:magnet-cl/django-project-template into development