diff --git a/judge/sitemap.py b/judge/sitemap.py index 5c3426ad2..2cac0ab6c 100644 --- a/judge/sitemap.py +++ b/judge/sitemap.py @@ -45,7 +45,7 @@ class OrganizationSitemap(Sitemap): priority = 0.5 def items(self): - return Organization.objects.values_list('id', 'slug') + return Organization.objects.values_list('slug') def location(self, obj): return reverse('organization_home', args=obj) diff --git a/judge/views/organization.py b/judge/views/organization.py index de8ddeac5..f694c874e 100644 --- a/judge/views/organization.py +++ b/judge/views/organization.py @@ -174,8 +174,6 @@ class OrganizationRequestForm(Form): class RequestJoinOrganization(LoginRequiredMixin, SingleObjectMixin, FormView): model = Organization - slug_field = 'key' - slug_url_kwarg = 'key' template_name = 'organization/requests/request.html' form_class = OrganizationRequestForm @@ -224,8 +222,6 @@ def get_object(self, queryset=None): class OrganizationRequestBaseView(LoginRequiredMixin, SingleObjectTemplateResponseMixin, SingleObjectMixin, View): model = Organization - slug_field = 'key' - slug_url_kwarg = 'key' tab = None def get_object(self, queryset=None): diff --git a/templates/organization/requests/log.html b/templates/organization/requests/log.html index 840fc59b9..1f38b839d 100644 --- a/templates/organization/requests/log.html +++ b/templates/organization/requests/log.html @@ -15,7 +15,7 @@
{{ _('There are no requests to approve.') }}
{% endif %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/templates/organization/requests/tabs.html b/templates/organization/requests/tabs.html index 569f75a68..178a2ef4a 100644 --- a/templates/organization/requests/tabs.html +++ b/templates/organization/requests/tabs.html @@ -1,16 +1,16 @@ \ No newline at end of file +