from django.shortcuts import render
from django.utils.translation import get_language

from lemon.sitemaps.models import Item


def sitemap_xml(request):
    qs = Item.objects.filter(sites=request.site, enabled=True, language=get_language())
    return render(request, 'sitemaps/sitemap.xml',
                  {'object_list': qs}, content_type='application/xml')

from django.shortcuts import render

from lemon.sitemaps.models import Item


def sitemap_xml(request):
    qs = Item.objects.filter(sites=request.site, enabled=True)
    return render(request, 'sitemaps/sitemap.xml',
                  {'object_list': qs}, content_type='application/xml')

Remove language filtration in sitemap.xml
Remove language filtration in sitemap.xml

  from django.shortcuts import render
- from django.utils.translation import get_language
  
  from lemon.sitemaps.models import Item
  
  
  def sitemap_xml(request):
-     qs = Item.objects.filter(sites=request.site, enabled=True, language=get_language())
+     qs = Item.objects.filter(sites=request.site, enabled=True)
      return render(request, 'sitemaps/sitemap.xml',
                    {'object_list': qs}, content_type='application/xml')
  
Remove language filtration in sitemap.xml
## Code Before:
from django.shortcuts import render
from django.utils.translation import get_language

from lemon.sitemaps.models import Item


def sitemap_xml(request):
    qs = Item.objects.filter(sites=request.site, enabled=True, language=get_language())
    return render(request, 'sitemaps/sitemap.xml',
                  {'object_list': qs}, content_type='application/xml')

## Instruction:
Remove language filtration in sitemap.xml
## Code After:
from django.shortcuts import render

from lemon.sitemaps.models import Item


def sitemap_xml(request):
    qs = Item.objects.filter(sites=request.site, enabled=True)
    return render(request, 'sitemaps/sitemap.xml',
                  {'object_list': qs}, content_type='application/xml')
