Migrate and improve subscriptions

This commit is contained in:
Skia
2016-08-14 19:28:14 +02:00
parent e1474c7a74
commit 66fdf6cbf7
18 changed files with 351 additions and 89 deletions

View File

@ -30,7 +30,7 @@ class Customer(models.Model):
ordering = ['account_id',]
def __str__(self):
return self.user.username
return "%s - %s" % (self.user.username, self.account_id)
def generate_account_id(number):
number = str(number)