Skip to content
This repository has been archived by the owner on Oct 15, 2021. It is now read-only.

Commit

Permalink
minor: Cleanup in the index view
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Búrigo Zacarão committed Sep 13, 2010
1 parent b5084b7 commit 95cf0ae
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions transifex/txcommon/views.py
Expand Up @@ -60,15 +60,13 @@ def search(request):

@csrf_protect
def index(request):
num_projects = Project.objects.count()
num_languages = Language.objects.count()
return render_to_response("index.html",
{'form': AuthenticationForm(),
'next': request.path,
'num_projects': num_projects,
'num_languages': num_languages,
},
context_instance = RequestContext(request))
'num_projects': Project.objects.count(),
'num_languages': Language.objects.count(),
},
context_instance = RequestContext(request))


@login_required
Expand Down

0 comments on commit 95cf0ae

Please sign in to comment.