Permalink
Browse files

Merge pull request #42 from andymckay/820198-notes

add in a notes field (bug 820198-notes)
  • Loading branch information...
2 parents b93aa06 + affa3df commit b25575614d60d7d0b5c1b4236b2f52393ea8a4ee @andymckay andymckay committed Jan 3, 2013
Showing with 5 additions and 1 deletion.
  1. +3 −0 lib/transactions/models.py
  2. +1 −1 lib/transactions/resources.py
  3. +1 −0 migrations/27-add-notes.sql
@@ -42,6 +42,9 @@ class Transaction(Model):
# you don't specify one.
uuid = models.CharField(max_length=255, db_index=True, unique=True)
+ # A general "store whatever you like" field. Solitude wont use this.
+ notes = models.TextField(blank=True, null=True)
+
class Meta(Model.Meta):
db_table = 'transaction'
ordering = ('-id',)
@@ -17,7 +17,7 @@ class TransactionResource(ModelResource):
class Meta(ModelResource.Meta):
queryset = Transaction.objects.filter()
fields = ['uuid', 'seller_product', 'amount', 'currency', 'provider',
- 'uid_support', 'type', 'status', 'related']
+ 'uid_support', 'type', 'status', 'related', 'notes']
list_allowed_methods = ['get', 'post']
allowed_methods = ['get']
resource_name = 'transaction'
@@ -0,0 +1 @@
+ALTER TABLE transaction ADD COLUMN notes longtext;

0 comments on commit b255756

Please sign in to comment.