[Answered ]-How to escape modulo in Django translation strings (ugettext_lazy)

2👍

This is the only workaround I found to be working… and it’s ugly as hell:

class MyModel(models.Model):
    test = models.CharField(_("100%(bs)s of escaping problems sucks") % {'bs': '%'}, max_length=50)
👤h3.

Leave a comment