getProfile ==> get_profile...
This commit is contained in:
parent
67f5b43c72
commit
1b7aaca19f
|
@ -116,7 +116,7 @@ class BuyableItemHandler(BaseHandler):
|
||||||
p.save(saveOrder=False)
|
p.save(saveOrder=False)
|
||||||
order.save()
|
order.save()
|
||||||
|
|
||||||
return {'success': True, 'balance': request.user.getProfile().balance}
|
return {'success': True, 'balance': request.user.get_profile().balance}
|
||||||
|
|
||||||
def bulkBuy(self, request):
|
def bulkBuy(self, request):
|
||||||
"""Buy a :class:`Buyable <buyable.models.Buyable>` item.
|
"""Buy a :class:`Buyable <buyable.models.Buyable>` item.
|
||||||
|
@ -179,7 +179,7 @@ class BuyableItemHandler(BaseHandler):
|
||||||
p.save(saveOrder=False)
|
p.save(saveOrder=False)
|
||||||
order.save()
|
order.save()
|
||||||
|
|
||||||
return {'success': True, 'balance': request.user.getProfile().balance}
|
return {'success': True, 'balance': request.user.get_profile().balance}
|
||||||
|
|
||||||
|
|
||||||
class BuyableTypeHandler(BaseHandler):
|
class BuyableTypeHandler(BaseHandler):
|
||||||
|
@ -290,7 +290,7 @@ class TransactionTransactHandler(BaseHandler):
|
||||||
return getError(rc.BAD_REQUEST, "Your TransactionType could not be found")
|
return getError(rc.BAD_REQUEST, "Your TransactionType could not be found")
|
||||||
trans = Transaction(user=request.user, transactionType=tType, amount=amount, checked=not tType.needsCheck)
|
trans = Transaction(user=request.user, transactionType=tType, amount=amount, checked=not tType.needsCheck)
|
||||||
trans.save()
|
trans.save()
|
||||||
return {'success': True, 'balance': request.user.getProfile().balance}
|
return {'success': True, 'balance': request.user.get_profile().balance}
|
||||||
|
|
||||||
class TransactionTypeHandler(BaseHandler):
|
class TransactionTypeHandler(BaseHandler):
|
||||||
"""Handler for :class:`Transaction Types <transaction.models.TransactionType>`
|
"""Handler for :class:`Transaction Types <transaction.models.TransactionType>`
|
||||||
|
@ -348,7 +348,7 @@ class TransactionVirtualHandler(BaseHandler):
|
||||||
return getError(rc.BAD_REQUEST, "The recipient user does not exist.")
|
return getError(rc.BAD_REQUEST, "The recipient user does not exist.")
|
||||||
trans = VirtualTransaction(user=request.user, recipient=recipient, amount=amount, comment=comment)
|
trans = VirtualTransaction(user=request.user, recipient=recipient, amount=amount, comment=comment)
|
||||||
trans.save()
|
trans.save()
|
||||||
return {'success': True, 'balance': request.user.getProfile().balance}
|
return {'success': True, 'balance': request.user.get_profile().balance}
|
||||||
|
|
||||||
class AccountBalanceHandler(BaseHandler):
|
class AccountBalanceHandler(BaseHandler):
|
||||||
"""Handler for the user's account balance"""
|
"""Handler for the user's account balance"""
|
||||||
|
|
Loading…
Reference in New Issue