Created custom “add order view” to admin panel, Added vm name and user email to orders list admin view , Started function to charge an user for his VM subscription from the admin panel, Created template for email after charge an user for his virtual machine plan, Handle errors creating an order in the admin panel, Now an email is sent to the user after charge him for his virtual machine plan
This commit is contained in:
parent
a846f42bf6
commit
d472d37fab
10 changed files with 649 additions and 21 deletions
|
|
@ -104,7 +104,7 @@ class VirtualMachinePlan(models.Model):
|
|||
objects = VMPlansManager()
|
||||
|
||||
def __str__(self):
|
||||
return "%s" % (self.id)
|
||||
return self.name
|
||||
|
||||
@cached_property
|
||||
def hosting_company_name(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue