Discussion:
[SCM] UNNAMED PROJECT branch, master, updated. abe35bf8682fe33344985d02011421e018f98809
Michal Cihar
2011-12-13 12:52:11 UTC
Permalink
The following commit has been merged in the master branch:
commit abe35bf8682fe33344985d02011421e018f98809
Author: Michal Čihař <***@cihar.com>
Date: Tue Dec 13 13:50:57 2011 +0100

Do not replace - with _

diff --git a/phonedb/models.py b/phonedb/models.py
index 0c0b8ec..b025a19 100644
--- a/phonedb/models.py
+++ b/phonedb/models.py
@@ -110,7 +110,7 @@ class Phone(models.Model):

def get_related_sites(self):
result = []
- name = self.__unicode__().replace(' ', '_').replace('-', '_')
+ name = self.__unicode__().replace(' ', '_')
result.append({
'url': 'http://wikipedia.org/wiki/%s' % name,
'name': 'Wikipedia',
--
UNNAMED PROJECT
Loading...