Ticket #9965: 9965-r9701.diff

File 9965-r9701.diff, 596 bytes (added by Joost Cassee, 16 years ago)

Patch to change import of reverse function to import of urlresolvers module

  • django/db/models/__init__.py

     
    2424        (viewname, viewargs)
    2525        (viewname, viewargs, viewkwargs)
    2626    """
    27     from django.core.urlresolvers import reverse
     27    from django.core import urlresolvers
    2828    def inner(*args, **kwargs):
    2929        bits = func(*args, **kwargs)
    30         return reverse(bits[0], None, *bits[1:3])
     30        return urlresolvers.reverse(bits[0], None, *bits[1:3])
    3131    return inner
Back to Top