generated from commonknowledge/groundwork-starter-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #478 from commonknowledge/adjust-slow-middleware-s…
…yncing-subs Run Stripe subscription syncing middleware only on specific pages
- Loading branch information
Showing
17 changed files
with
1,001 additions
and
998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 19 additions & 13 deletions
32
app/migrations/0065_alter_upsellplansettings_options_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,40 @@ | ||
# Generated by Django 4.0.8 on 2023-03-21 12:49 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
import wagtail.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('app', '0064_reviewfeesettings_donation_text_and_more'), | ||
("app", "0064_reviewfeesettings_donation_text_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='upsellplansettings', | ||
options={'verbose_name': 'Review Fee Settings'}, | ||
name="upsellplansettings", | ||
options={"verbose_name": "Review Fee Settings"}, | ||
), | ||
migrations.AddField( | ||
model_name='upsellplansettings', | ||
name='upgrade_membership_text', | ||
field=wagtail.fields.RichTextField(default='\n <p>Here is some text that can be edited blah blah blah</p>\n '), | ||
model_name="upsellplansettings", | ||
name="upgrade_membership_text", | ||
field=wagtail.fields.RichTextField( | ||
default="\n <p>Here is some text that can be edited blah blah blah</p>\n " | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='membershipplanpage', | ||
name='deliveries_per_year', | ||
field=models.PositiveIntegerField(default=0, validators=[django.core.validators.MinValueValidator(0)]), | ||
model_name="membershipplanpage", | ||
name="deliveries_per_year", | ||
field=models.PositiveIntegerField( | ||
default=0, validators=[django.core.validators.MinValueValidator(0)] | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='upsellplansettings', | ||
name='intro_text', | ||
field=wagtail.fields.RichTextField(default='\n <h1>Review your fee</h1>\n <p>Since you signed up, our operating costs have increased dramatically due to the economic times we’re all living through.</p>\n <p>We’ve increased the price of new memberships and protected your fee, but we are beginning to struggle. Can you afford to increase your membership fee?</p>\n '), | ||
model_name="upsellplansettings", | ||
name="intro_text", | ||
field=wagtail.fields.RichTextField( | ||
default="\n <h1>Review your fee</h1>\n <p>Since you signed up, our operating costs have increased dramatically due to the economic times we’re all living through.</p>\n <p>We’ve increased the price of new memberships and protected your fee, but we are beginning to struggle. Can you afford to increase your membership fee?</p>\n " | ||
), | ||
), | ||
] |
12 changes: 7 additions & 5 deletions
12
app/migrations/0066_alter_upsellplansettings_upgrade_membership_text.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
# Generated by Django 4.0.8 on 2023-07-18 14:33 | ||
|
||
from django.db import migrations | ||
import wagtail.fields | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('app', '0065_alter_upsellplansettings_options_and_more'), | ||
("app", "0065_alter_upsellplansettings_options_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='upsellplansettings', | ||
name='upgrade_membership_text', | ||
field=wagtail.fields.RichTextField(default='\n <p>You’re currently paying {{ old_price }}. Select this option if it’s all you can afford right now — that is totally OK.</p>\n <p>Other members paying solidarity rates will make it possible for us to continue offering this, so please consider if you can afford to increase your rate or if you genuinely need to stay here.</p>\n '), | ||
model_name="upsellplansettings", | ||
name="upgrade_membership_text", | ||
field=wagtail.fields.RichTextField( | ||
default="\n <p>You’re currently paying {{ old_price }}. Select this option if it’s all you can afford right now — that is totally OK.</p>\n <p>Other members paying solidarity rates will make it possible for us to continue offering this, so please consider if you can afford to increase your rate or if you genuinely need to stay here.</p>\n " | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/migrations/0082_alter_membershipplanprice_default_donation_amount_currency_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.