Verified Commit 30be2755 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Complete docs for payments package, closes #580

parent 4ae90c69
......@@ -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