This small optimization seems to work - only compiling the RE once now and simple using startswith string matching.
This small optimization seems to work - only compiling the RE once now and simple using startswith string matching.

dokterbob/django-multilingual-model