Fixed issue where a non-active plan could not be upgraded to premium archive. Thanks @thedaveCA for help finding it.

This commit is contained in:
Samuel Clay 2022-11-26 09:20:37 -05:00
parent 5aa06c393f
commit ef4e27035d

View file

@ -104,10 +104,10 @@ class Profile(models.Model):
price = "P-5JM46230U31841226MHZOMZY"
if settings.DEBUG:
price = "P-2EG40290653242115MHZROQQ"
# elif plan == "pro":
# price = "price_0KK5cvwdsmP8XBlaZDq068bA"
# if settings.DEBUG:
# price = "price_0KK5twwdsmP8XBlasifbX56Z"
elif plan == "pro":
price = "price_0KK5cvwdsmP8XBlaZDq068bA"
if settings.DEBUG:
price = "price_0KK5twwdsmP8XBlasifbX56Z"
return price
@property