Skip to content

Commit

Permalink
fix: /clubs being rendered as api
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Jan 5, 2024
1 parent ebbc56b commit 029af9c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
name="api_announcement_feed",
),
path("announcements", AnnouncementListAll.as_view(), name="api_all_announcements"),
path("organizations", OrganizationList.as_view(), name="api_organization_list"),
path("organizations", ApiOrganizationList.as_view(), name="api_organization_list"),
path(
"organization/<int:pk>",
OrganizationDetail.as_view(),
Expand Down
2 changes: 1 addition & 1 deletion core/api/views/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ... import models


class OrganizationList(ListAPIViewWithFallback):
class ApiOrganizationList(ListAPIViewWithFallback):
queryset = (
models.Organization.objects.filter(is_active=True)
.annotate(num_members=Count("member"))
Expand Down
4 changes: 3 additions & 1 deletion core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .api.views import *
from .utils.sitemaps import *
from .views.index import *
from .views.organization import OrganizationShort
from .views.organization import *
from .views.post import *
from .views.raffle import *
from .views.timetable import *
Expand All @@ -26,6 +26,8 @@
"blog": BlogSitemap,
"announcements": AnnouncementsSitemap,
"clubs": ClubsSitemap,
"flatpages": FlatpagesSitemap,

}
},
name="django.contrib.sitemaps.sitemaps",
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 029af9c

Please sign in to comment.