Create proper URL check for feature matrix entries
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 30 Aug 2020 20:47:12 +0000 (16:47 -0400)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Sun, 30 Aug 2020 20:47:12 +0000 (16:47 -0400)
commitfbad26136a67e19fd26786cd03f5dd6d012c3b13
tree8e3dbc6bcf596e6b2bde02d5e0b39224a480ae8a
parent40d6891cbdc152e0ba98add8be0ec1de2a18b17f
Create proper URL check for feature matrix entries

40d6891c had created a false illusion of working, which can
certainly be blamed on the patch author. That said, instead
of trying to work around what the standard Django filters
provide, it is more prudent to create a "URL checking"
function for the feature matrix descriptions. This can be
used both for the "featurelink" generation, as well as the
new check we make to get the stated goal of 40d6891c, i.e.
provide a clickable URL when that is the only content of a
feature description.
pgweb/featurematrix/models.py
templates/featurematrix/featuredetail.html