This commit is contained in:
Eugene Pankov
2022-12-26 18:49:25 +01:00
parent 69f45863f6
commit e112b46063
3 changed files with 3 additions and 7 deletions

View File

@@ -33,9 +33,7 @@ class UserSerializer(ModelSerializer):
def get_is_pro(self, obj):
return (
obj.force_pro
or not settings.GITHUB_ELIGIBLE_SPONSORSHIPS
or check_is_sponsor_cached(obj)
obj.force_pro or not settings.GITHUB_ELIGIBLE_SPONSORSHIPS or check_is_sponsor_cached(obj)
)
def get_is_sponsor(self, obj):