memcache_admin/views.py
def _context_data(data, request=None):
    """
    Add admin global context, for compatibility with Django 1.7
    """
    try:
        return dict(site.each_context(request).items() + data.items())
    except AttributeError:
        return data
def _context_data(data, request=None):
    """
    Add admin global context, for compatibility with Django 1.7
    """
    try:
        return dict(site.each_context(request).items() + data.items())
    except AttributeError:
        return data
Add admin global context, for compatibility with Django 1.7