Commit 79955630 authored by David Seaward's avatar David Seaward
Browse files

FIXME: temporarily include fields from the future


Signed-off-by: David Seaward's avatarDavid Seaward <david.seaward@puri.sm>
parent 25243289
Pipeline #54222 passed with stage
in 33 seconds
......@@ -43,6 +43,8 @@ class SubscriptionError(Exception):
class SubscriptionManager:
woo = None
@classmethod
def create_subscription(cls, user, account_type=AccountType.BASIC,
billing_period=BillingPeriod.MONTHLY, paid=False,
......
......@@ -86,6 +86,15 @@ class User(AbstractUser):
purge = models.IntegerField(default=None, null=True)
wcid = models.IntegerField(default=None, null=True)
# FIXME: temporarily include fields from the future
rma = models.DecimalField(default=0, decimal_places=2, max_digits=6)
quota = models.DecimalField(default=0, decimal_places=2, max_digits=6)
is_locked = models.BooleanField(default=False)
over_since = models.DateTimeField(null=True)
# Pay as you go flag
payg = models.BooleanField(default=False)
storage_cost_cache = models.DecimalField(default=0, decimal_places=2, max_digits=6)
def clean(self):
super().clean()
self.email = self.email.lower()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment