[Fixed]-'TypeError: 'DotMap' object is not callable' error at django model class

1👍

You should not initial DotMap type variable inside Django Model class, define it outside.

    temp = { 'key': 'value' }
    dot_map = DotMap(temp) 

    class SomeModel(models.Model):
        # use dot_map as you want 
        pass
👤nick

Leave a comment