From 09d6e1ec24f71736f8b2bffa47bdc8c1f7e8d06c Mon Sep 17 00:00:00 2001 From: Anne Mickan Date: Mon, 25 Mar 2024 10:51:38 +0100 Subject: [PATCH] Remove receive_notification_email field (#3285) Part of https://github.com/DIAGNijmegen/rse-roadmap/issues/300 --- ...e_userprofile_receive_notification_emails.py | 17 +++++++++++++++++ app/grandchallenge/profiles/models.py | 8 -------- 2 files changed, 17 insertions(+), 8 deletions(-) create mode 100644 app/grandchallenge/profiles/migrations/0018_remove_userprofile_receive_notification_emails.py diff --git a/app/grandchallenge/profiles/migrations/0018_remove_userprofile_receive_notification_emails.py b/app/grandchallenge/profiles/migrations/0018_remove_userprofile_receive_notification_emails.py new file mode 100644 index 0000000000..ea16dcf675 --- /dev/null +++ b/app/grandchallenge/profiles/migrations/0018_remove_userprofile_receive_notification_emails.py @@ -0,0 +1,17 @@ +# Generated by Django 4.2.11 on 2024-03-22 14:11 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("profiles", "0017_alter_userprofile_receive_notification_emails"), + ] + + operations = [ + migrations.RemoveField( + model_name="userprofile", + name="receive_notification_emails", + ), + ] diff --git a/app/grandchallenge/profiles/models.py b/app/grandchallenge/profiles/models.py index cdb85a2417..ab01620279 100644 --- a/app/grandchallenge/profiles/models.py +++ b/app/grandchallenge/profiles/models.py @@ -13,7 +13,6 @@ from django.utils.timezone import now from django.utils.translation import gettext_lazy as _ from django_countries.fields import CountryField -from django_deprecate_fields import deprecate_field from guardian.models import GroupObjectPermissionBase, UserObjectPermissionBase from guardian.shortcuts import assign_perm from guardian.utils import get_anonymous_user @@ -65,13 +64,6 @@ class UserProfile(models.Model): default=True, help_text="Display the organizations that you are a member of in your profile.", ) - - receive_notification_emails = deprecate_field( - models.BooleanField( - default=True, - help_text="Whether to receive notification emails", - ) - ) notification_email_last_sent_at = models.DateTimeField( default=None, null=True, editable=False )