datatracker/ietf/mailinglists/views.py
Robert Sparks efdaee3bb3
feat: decouple from mailman2 - explicitly model nonwg mailing lists (#7013)
* fix: remove synchronization with mailman2

* feat: manage non wg mailing lists explicitly

* chore: black

* fix: update tests for new nonwg view

* feat: drop unused models
2024-02-05 09:28:23 -06:00

26 lines
691 B
Python

# Copyright The IETF Trust 2007-2022, All Rights Reserved
from django.shortcuts import render
import debug # pyflakes:ignore
from ietf.group.models import Group
from ietf.mailinglists.models import NonWgMailingList
def groups(request):
groups = (
Group.objects.filter(
type__features__acts_like_wg=True, list_archive__startswith="http"
)
.exclude(state__in=("bof", "conclude"))
.order_by("acronym")
)
return render(request, "mailinglists/group_archives.html", {"groups": groups})
def nonwg(request):
lists = NonWgMailingList.objects.order_by("name")
return render(request, "mailinglists/nonwg.html", {"lists": lists})