Ticket #15829: sitemaps-item.diff

File sitemaps-item.diff, 653 bytes (added by manfre, 4 years ago)

Add "item" to url_info added to context.

  • django/contrib/sitemaps/__init__.py

    diff -r bbbacd49af3e django/contrib/sitemaps/__init__.py
    a b  
    7979                'location':   loc,
    8080                'lastmod':    self.__get('lastmod', item, None),
    8181                'changefreq': self.__get('changefreq', item, None),
    82                 'priority':   str(priority is not None and priority or '')
     82                'priority':   str(priority is not None and priority or ''),
     83                'item':       item,
    8384            }
    8485            urls.append(url_info)
    8586        return urls
Back to Top