Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds an is_pro flag to the profile, so that we can easily toggle users back and forth into pro features #8302

Merged
merged 4 commits into from
Feb 1, 2021

Conversation

owocki
Copy link
Contributor

@owocki owocki commented Jan 25, 2021

Description

adds an is_pro flag to the profile, so that we can easily toggle users back and forth into pro features

Refers/Fixes

https://gitcoincore.slack.com/archives/CCL5Q0G5S/p1611589993005000

Testing

tested locally

@@ -397,6 +397,7 @@ class Bounty(SuperModel):
default=False, help_text=_('This bounty will be part of the hypercharged bounties')
)
hyper_next_publication = models.DateTimeField(null=True, blank=True)
is_pro = models.BooleanField(help_text=_('Is this use upgraded to pro?'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*user

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this need to be on profile not on the bounty model as context is looking for profile.is_pro Unless Im missing something.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh shoot ur right

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coding is hard, thats why im a powerpoint guy these days.

fixed at ba14183

@@ -397,6 +397,7 @@ class Bounty(SuperModel):
default=False, help_text=_('This bounty will be part of the hypercharged bounties')
)
hyper_next_publication = models.DateTimeField(null=True, blank=True)
is_pro = models.BooleanField(help_text=_('Is this use upgraded to pro?'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this need to be on profile not on the bounty model as context is looking for profile.is_pro Unless Im missing something.

@owocki
Copy link
Contributor Author

owocki commented Jan 28, 2021

@thelostone-mc @octavioamu fixed! ba14183

@thelostone-mc thelostone-mc changed the base branch from stable to master February 1, 2021 09:10
@thelostone-mc
Copy link
Member

conflicts + missing default value + migration out of date!
pushing a commit to fix those and merging into master

@thelostone-mc thelostone-mc merged commit 60d5bb0 into master Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants