1
0
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:
Yohann D'ANELLO
2020-08-13 19:43:37 +02:00
parent 1e4cbf60c5
commit c50fdd6689
6 changed files with 30 additions and 42 deletions

View File

@ -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",