Coverage for website/thabloid/services.py: 0.00%

5 statements  

« prev     ^ index     » next       coverage.py v7.6.7, created at 2025-08-14 10:31 +0000

1from thabloid.models import ThabloidUser 

2 

3 

4def update_thabloid_blacklist_for_user(form, instance, commit, *args, **kwargs): 

5 """Update the Thabloid blacklist in the member profile edit form.""" 

6 if form.cleaned_data["receive_thabloid"]: 

7 ThabloidUser.objects.get(pk=instance.user.pk).allow_thabloid() 

8 else: 

9 ThabloidUser.objects.get(pk=instance.user.pk).disallow_thabloid()