Commit e0e1d321 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'docs/payments' into 'master'

Complete docs for payments package

Closes #580

See merge request !937
parents aca5a3b3 30be2755
......@@ -9,6 +9,9 @@ from django.utils.translation import ugettext_lazy as _
class Payment(models.Model):
"""
Describes a payment
"""
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
......
"""Widgets provided by the payments package"""
from django.forms import Widget
from payments.models import Payment
class PaymentWidget(Widget):
"""
Custom widget for the Payment object, used in registrations
"""
template_name = 'payments/widget.html'
def value_from_datadict(self, data, files, name):
......
Supports Markdown
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