Is it possible add fields to the model from another app?


Hi all,

I used to Odoo (OpenERP) for some times. It provide a function "_inherit" that can add fields to the model from another module (app). Is it possible to do it in Django? Since I want to create a plugin to add some fields into the models instead of edit the original app inside.






Guest June 28, 2017, 4:48 a.m. 1 Answer

Answers ( 1 )

  1. June 28, 2017, 11:31 p.m.

    I have found a solution that to use "OneToOneField" to extend one more model store the extended fields.





Warning! You are not logged in.
Your answer will be published as Guest user.

Post your Answer

 Prev question