python3: get HTML parser from six transition module
This commit is contained in:
parent
0ff596b5e6
commit
d4346e2cfa
|
@ -699,7 +699,7 @@ class CellBase(models.Model):
|
|||
}
|
||||
if not self.is_relevant(context):
|
||||
return ''
|
||||
from HTMLParser import HTMLParser
|
||||
from django.utils.six.moves.html_parser import HTMLParser
|
||||
return HTMLParser().unescape(strip_tags(self.render(context)))
|
||||
|
||||
def get_external_links_data(self):
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from HTMLParser import HTMLParser
|
||||
from django.utils.six.moves.html_parser import HTMLParser
|
||||
|
||||
from django.template.context import BaseContext
|
||||
from django.utils.html import strip_tags
|
||||
|
|
Loading…
Reference in New Issue