Skip to content

Commit

Permalink
Remove receive_notification_email field (#3285)
Browse files Browse the repository at this point in the history
  • Loading branch information
amickan authored Mar 25, 2024
1 parent 7221fd6 commit 09d6e1e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -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",
),
]
8 changes: 0 additions & 8 deletions app/grandchallenge/profiles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
)
Expand Down

0 comments on commit 09d6e1e

Please sign in to comment.