def patch_reverse():
    global django_reverse
    if urlresolvers.reverse is not reverse:
        django_reverse = urlresolvers.reverse
        urlresolvers.reverse = reverse
Monkey-patches the urlresolvers.reverse function. Will not patch twice.
dataset/ETHPy150Open carljm/django-localeurl/localeurl/models.py/patch_reverse