Slight changes in team.views.py