I do not know why this is happening: If I try to update a database record the text gets into the field the wrong way:
...
log = ClassroomLog.objects.get(...)
log.text = "Hallo"
log.save()
then the field in the database will contain this:
('Hallo',)
What am I doing wrong here?
If I do this instead:
...
log = ClassroomLog.objects.get(...)
log.delete()
log = ClassroomLog(..., text = "Hallo", ...)
log.save()
it works out as expected and the admin of the database shows for list_display = ('text',):
Hallo
Can someone please help me with this. I tried for quite a while, but could not figure out what is happening.
with kind regards and thanks in advance
Sabine