-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
Conversation
app/dashboard/models.py
Outdated
@@ -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?')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*user
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh shoot ur right
There was a problem hiding this comment.
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
app/dashboard/models.py
Outdated
@@ -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?')) |
There was a problem hiding this comment.
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.
@thelostone-mc @octavioamu fixed! ba14183 |
conflicts + missing default value + migration out of date! |
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