diff --git a/upload/helpers.py b/upload/helpers.py index 23379e3ee8..461f513d15 100644 --- a/upload/helpers.py +++ b/upload/helpers.py @@ -637,7 +637,7 @@ def validate_upload( # If author is on per repo billing, check their repo credits if ( - owner.plan not in Plan.object.values_list("name", flat=True) + owner.plan not in Plan.objects.values_list("name", flat=True) and owner.repo_credits <= 0 ): raise ValidationError(