mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-21 18:08:21 +02:00
Move the mailing list registration to the Profile model, see #50
This commit is contained in:
@ -5,6 +5,7 @@ from datetime import date
|
||||
|
||||
from django.core.management import BaseCommand
|
||||
from django.db.models import Q
|
||||
|
||||
from member.models import Membership, Club
|
||||
from wei.models import WEIClub
|
||||
|
||||
@ -21,6 +22,13 @@ class Command(BaseCommand):
|
||||
help='Select the year of the concerned WEI. Default: last year')
|
||||
|
||||
def handle(self, *args, **options):
|
||||
###########################################################
|
||||
# WARNING #
|
||||
###########################################################
|
||||
#
|
||||
# This code is obsolete.
|
||||
# TODO: Improve the mailing list extraction system, and link it automatically with Mailman.
|
||||
|
||||
if options["type"] == "members":
|
||||
for membership in Membership.objects.filter(
|
||||
club__name="BDE",
|
||||
|
Reference in New Issue
Block a user