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