I am having a problem to extend a field of a model.
On Sunday, November 20, 2016 at 2:55:03 PM UTC-5, Manuel Alejandro Márquez Ortiz wrote:I am having a problem to extend a field of a model.
I am not sure what you mean by "extend a field of a model." If a model is defined in another module, and you want to change the attributes of one of its fields, the place to do it is in by overriding the model's __setup__ method. For example, something like AModel.the_field.states.update({'readonly': True}).
--Thanks Jon, that's that I need!