Update tests
Update tests

 - Fix test for Profile Sql Detail view

 - Refactor Django ORM usage in tests for readability

mtford90/silk,jazzband/silk,mtford90/silk,jazzband/silk,jazzband/silk,mtford90/silk,jazzband/silk,mtford90/silk