From c0576c29639c7374d7400755d3c88d0c37e65e25 Mon Sep 17 00:00:00 2001 From: Daniel Brown Date: Sat, 23 Mar 2024 23:22:56 +0000 Subject: [PATCH] clubs in sitemap --- src/hbscorez/urls.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hbscorez/urls.py b/src/hbscorez/urls.py index 8b8c647d..0c6abed9 100644 --- a/src/hbscorez/urls.py +++ b/src/hbscorez/urls.py @@ -19,7 +19,7 @@ from players.models import Player from sports_halls import urls as sports_hall_urls from teams import urls as team_urls -from teams.models import Team +from teams.models import Club, Team from users import urls as user_urls from users.forms import CaptchaRegistrationForm from users.views import CaptchaRegistrationView @@ -27,6 +27,7 @@ ASSOCIATIONS = {'queryset': Association.objects.get_queryset().order_by('pk')} DISTRICTS = {'queryset': District.objects.get_queryset().order_by('pk')} LEAGUES = {'queryset': League.objects.get_queryset().order_by('pk')} +CLUBS = {'queryset': Club.objects.get_queryset().order_by('pk')} TEAMS = {'queryset': Team.objects.get_queryset().order_by('pk')} GAMES = {'queryset': Game.objects.get_queryset().order_by('pk')} PLAYERS = {'queryset': Player.objects.get_queryset().order_by('pk')} @@ -42,6 +43,7 @@ 'associations': GenericSitemap(ASSOCIATIONS), 'districts': GenericSitemap(DISTRICTS), 'leagues': GenericSitemap(LEAGUES), + 'clubs': GenericSitemap(CLUBS), 'teams': GenericSitemap(TEAMS), 'players': GenericSitemap(PLAYERS), }}, name='django.contrib.sitemaps.views.sitemap'),