Documenting memberships.

This commit is contained in:
misund committed 2013-06-26 23:22:48 +02:00
1 parent b782322911
commit ff8e98b681
3 files changed
+10 -6

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ Contents:
member
group
membership
Indices and tables
+2 -2
View File
@@ -42,7 +42,7 @@ GET /member/
"country" : "Norway",
"postal_code" : 0266,
"street_address" : "Odins gate 12A"
}
},
"created" : "2013-05-22T21:58:44",
"date_of_birth" : null,
"email" : "robert.kolner@gmail.com",
@@ -77,7 +77,7 @@ GET /member/(int)/
**Example response**:
.. sourcevode:: http
.. sourcecode:: http
HTTP/1.1 200 OK
Vary: Accept
+7 -4
View File
@@ -53,11 +53,14 @@ class ExtendedMemberDetail(models.Model):
updated = models.DateTimeField(auto_now=True)
pass
class PaymentForMembership(models.Model):
class PaymentType(models.Model):
name = models.CharField(max_length=255)
class Payment(models.Model):
# Note: More like tokens?
sms_payment_id = models.IntegerField(unique=True, null=True, blank=True)
webshop_payment_id = models.IntegerField(unique=True, null=True, blank=True)
voucher_id = models.IntegerField(unique=True, null=True, blank=True)
payment_type = models.ForeignKey(PaymentType)
value = models.IntegerField()
transaction_id = models.IntegerField(unique=True, null=True, blank=True)
created = models.DateTimeField(auto_now_add=True)
updated = models.DateTimeField(auto_now=True)