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
Source:stackexchange.com