diff --git a/docs/developer/README.md b/docs/developer/README.md index dca899074..b69a1f0f9 100644 --- a/docs/developer/README.md +++ b/docs/developer/README.md @@ -406,10 +406,8 @@ This function is triggered by the post_save event on the User model, designed to 2. For Existing Users: For users logging in subsequent times, the function ensures that any updates from Login.gov are applied to the associated User record. However, it does not alter any existing Contact records. -## Disable email sending (toggling the disable_email_sending switch) -Feature switches are booleans that behave like environment variables that you can toggle through the DB. -This switch globally disables our email sending feature. Using it is as simple as checking a box. +## Disable email sending (toggling the disable_email_sending flag) 1. On the app, navigate to `\admin`. -2. Under models, click `Waffle switches`. +2. Under models, click `Waffle flags`. 3. Click the `disable_email_sending` record. This should exist by default, if not - create one with that name. -4. (Important) Enable the checkbox for the field `Active`. This field overrides all other settings \ No newline at end of file +4. (Important) Set the field `everyone` to `Yes`. This field overrides all other settings \ No newline at end of file diff --git a/src/registrar/admin.py b/src/registrar/admin.py index 4f1c52d2e..9f3761bf6 100644 --- a/src/registrar/admin.py +++ b/src/registrar/admin.py @@ -2317,16 +2317,6 @@ class WaffleFlagAdmin(FlagAdmin): fields = "__all__" -class WaffleSwitchAdmin(SwitchAdmin): - """Custom admin implementation of django-waffle's Switch class""" - - class Meta: - """Contains meta information about this class""" - - model = models.WaffleSwitch - fields = "__all__" - - admin.site.unregister(LogEntry) # Unregister the default registration admin.site.register(LogEntry, CustomLogEntryAdmin) @@ -2352,7 +2342,7 @@ admin.site.register(models.VerifiedByStaff, VerifiedByStaffAdmin) # Register our custom waffle implementations admin.site.register(models.WaffleFlag, WaffleFlagAdmin) -admin.site.register(models.WaffleSwitch, WaffleSwitchAdmin) -# Unregister Sample from the waffle library +# Unregister Switch and Sample from the waffle library +admin.site.unregister(Switch) admin.site.unregister(Sample)