Skip to content

Commit d53f9db

Browse files
committed
Modified a view function to fill in missing default CommunityLists for groups with features.has_documents == True.
- Legacy-Id: 15957
1 parent 6667cc5 commit d53f9db

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/group/views.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,9 @@ def group_documents(request, acronym, group_type=None):
462462
if not group.features.has_documents:
463463
raise Http404
464464

465-
clist = get_object_or_404(CommunityList, group=group)
465+
if not group.communitylist_set.exists():
466+
setup_default_community_list_for_group(group)
467+
clist = group.communitylist_set.first()
466468

467469
docs, meta, docs_related, meta_related = prepare_group_documents(request, group, clist)
468470

0 commit comments

Comments
 (0)