[Answer]-Django Mongodb ListField not saving or updating

1👍

Concert is a class, not an instance. You can’t save a class. You need to make an instance of the class and save that. Something like

c = Concert()
c.media.append(list)
c.save()

(btw, just as a note, list is a bad variable name because list is a type in python. Never use types as variable names (though everyone is guilty of this at one point or another, including me.))

Leave a comment