forked from GithubBackups/healthchecks
Set the correct SMS limit when cancelling a paid plan.
This commit is contained in:
parent
fcf11d5b4f
commit
3e25e5c242
@ -51,7 +51,7 @@ class SubsAdmin(admin.ModelAdmin):
|
|||||||
profile = Profile.objects.for_user(sub.user)
|
profile = Profile.objects.for_user(sub.user)
|
||||||
profile.check_limit = 20
|
profile.check_limit = 20
|
||||||
profile.team_limit = 2
|
profile.team_limit = 2
|
||||||
profile.sms_limit = 0
|
profile.sms_limit = 5
|
||||||
profile.save()
|
profile.save()
|
||||||
|
|
||||||
self.message_user(request, "%d subscriptions cancelled" % qs.count())
|
self.message_user(request, "%d subscriptions cancelled" % qs.count())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user