From 34a8fd99ed5cbcb3c1f383142e0be9c794111a39 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Fri, 16 Sep 2022 09:50:11 -0700 Subject: [PATCH] Make stealth invoices the default --- api/models.py | 2 +- api/views.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/models.py b/api/models.py index 7f99264e..94996584 100644 --- a/api/models.py +++ b/api/models.py @@ -654,7 +654,7 @@ class Profile(models.Model): blank=True) # Stealth invoices - wants_stealth = models.BooleanField(default=False, + wants_stealth = models.BooleanField(default=True, null=False) @receiver(post_save, sender=User) diff --git a/api/views.py b/api/views.py index 5876101d..c2eb7ed5 100644 --- a/api/views.py +++ b/api/views.py @@ -735,7 +735,6 @@ class UserView(APIView): user.profile.is_referred = True user.profile.referred_by = queryset[0] - user.profile.wants_stealth = False user.profile.save() context["public_key"] = user.profile.public_key