Added HostingUserLoginForm test, Added HostingUserSignupForm test, Added PasswordResetRequestForm Test, Added SetPasswordForm test, Created custom 404 page
This commit is contained in:
parent
0dc81fff3d
commit
b34d84657e
9 changed files with 224 additions and 7 deletions
|
|
@ -21,6 +21,9 @@ class HostingOrderAdminForm(forms.ModelForm):
|
|||
raise forms.ValidationError("""You can't make a charge over
|
||||
a canceled virtual machine plan""")
|
||||
|
||||
if not customer:
|
||||
raise forms.ValidationError("""You need select a costumer""")
|
||||
|
||||
# Make a charge to the customer
|
||||
stripe_utils = StripeUtils()
|
||||
charge_response = stripe_utils.make_charge(customer=customer.stripe_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue