Package: nm.debian.org
Severity: normal
Tags: patch

Hi,

backend/models.py get_portfolio_url() doesn't return the full portfolio
URL, it's missing replacement fields. Patch attached.

Cheers,

Santiago

-- System Information:
Debian Release: 7.2
  APT prefers stable
  APT policy: (500, 'stable'), (10, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=es_ES.utf8, LC_CTYPE=es_ES.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff --git a/backend/models.py b/backend/models.py
index 02a29aa..2d17030 100644
--- a/backend/models.py
+++ b/backend/models.py
@@ -474,7 +474,7 @@ class Person(models.Model):
             parms["gpgfp"] = self.fpr
         if self.uid:
             parms["username"] = self.uid
-        return u"http://portfolio.debian.net/result?".format(urllib.urlencode(parms))
+        return u"http://portfolio.debian.net/result?{}".format(urllib.urlencode(parms))
 
     def get_allowed_processes(self):
         "Return a lits of processes that this person can begin"

Reply via email to