Skip to content

Commit

Permalink
clubs in sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
djbrown committed Mar 23, 2024
1 parent 5274010 commit c0576c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hbscorez/urls.py
Expand Up @@ -19,14 +19,15 @@
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

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')}
Expand All @@ -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'),
Expand Down

0 comments on commit c0576c2

Please sign in to comment.