forked from uncloud/uncloud
++ stuff
This commit is contained in:
parent
5b170ed521
commit
e726795495
3 changed files with 24 additions and 17 deletions
|
@ -19,6 +19,7 @@
|
|||
</title>
|
||||
|
||||
{% block css_extra %} {% endblock css_extra %}
|
||||
{% block head_extra %} {% endblock head_extra %}
|
||||
|
||||
{# Load CSS and JavaScript #}
|
||||
{% bootstrap_css %}
|
||||
|
|
|
@ -654,6 +654,7 @@ class Order(models.Model):
|
|||
billing_address = models.ForeignKey(BillingAddress,
|
||||
on_delete=models.CASCADE)
|
||||
|
||||
# Let's forget about this one
|
||||
customer = models.ForeignKey(StripeCustomer, on_delete=models.CASCADE, null=True)
|
||||
|
||||
product = models.ForeignKey(Product, blank=False, null=False, on_delete=models.CASCADE)
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
{% extends 'uncloud/base.html' %}
|
||||
|
||||
{% block head_extra %}
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||
<script src="https://js.stripe.com/v3/"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container">
|
||||
{% csrf_token %}
|
||||
<div id="content">
|
||||
|
@ -73,3 +77,4 @@
|
|||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue