[damned-lies] Define po_url in all cases



commit bcc4a339374b92aaafa5500e0de2501ce6ee7592
Author: Claude Paroz <claude 2xlibre net>
Date:   Tue May 26 10:34:15 2009 +0200

    Define po_url in all cases
---
 vertimus/views.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/vertimus/views.py b/vertimus/views.py
index f888bae..92de6b9 100644
--- a/vertimus/views.py
+++ b/vertimus/views.py
@@ -62,6 +62,8 @@ def vertimus(request, branch, domain, language, stats=None):
             stats = get_object_or_404(Statistics, branch=branch, domain=domain, language=None)
             po_url = urlresolvers.reverse('dynamic_po',
                         args=("%s.%s.%s.%s.po" % (branch.module.name, domain.name, branch.name, language.locale),))
+    else:
+        po_url = stats.po_url()
 
     # Get the state of the translation
     (state_db, created) = StateDb.objects.get_or_create(



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]