With fewer typos this time (probably), here’s the code I’m running:
from anvil.tables import app_tables
class TodoItem(app_tables.todos.Row, buffered=True, attrs=True, client_writable=True):
def _do_delete(self, from_client):
super()._do_delete()
def _do_update(self, updates, from_client):
super()._do_update(updates, from_client)
@classmethod
def _do_create(cls, values, from_client):
return super()._do_create(values, from_client)
test = TodoItem(task="test")
test.save()
test2 = TodoItem()
test2.task = "test2"
test2.save()
Why do I end up with 6 rows in the db table when I run this? Both test
and test2
are in in there three times.
Clone link: