The problem is that you use mandal here, which is the class that defines your model, and not model which is an instance of that class.
I would recommend you use capital letters for classes and lower letter for instances to avoid such confusions.