Esempio n. 1
0
 def testReadOnly(self):
     bank = BankAccount()
     bank.number = "1234567890"
     bank.amount = Decimal("100.00")
     bank.save()
     
     logs = Log.objects.all()
Esempio n. 2
0
def update(request):
    bank = BankAccount()
    bank.number = "1234567891"
    bank.amount = Decimal("100.00")
    bank.save()
    return HttpResponse("hello")