mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2025-06-29 09:50:54 +02:00
Note account has a special treatment in potential future NK15 import (compatibility commit)
This commit is contained in:
@ -316,6 +316,12 @@ class Command(ImportCommand):
|
||||
)
|
||||
bulk_mgr.done()
|
||||
|
||||
# Note account has a different treatment
|
||||
for m in Membership.objects.filter(user_username="note").all():
|
||||
m.date_end = "3142-12-12"
|
||||
m.roles.set([20]) # PC Kfet role
|
||||
m.save()
|
||||
|
||||
@timed
|
||||
@transaction.atomic
|
||||
def import_remittances(self, cur, chunk_size):
|
||||
|
Reference in New Issue
Block a user