1👍
This link was very helpful for me.
https://skyl.org/log/post/skyl/2010/03/add-urls-to-your-django-sitemap-that-require-two-objects/
Essentially, I extended the sitemap.Sitemap class in order to override the items function with my desired queryeset (i.e. Model.objects.all()
). I then also overrided the location function to return '/%s/' % obj.name
Source:stackexchange.com