On 5 de gener de 2015 21:18:45 CET, Mariano Ramon <[email protected]> wrote: >Which is the function that runs on creations of any model.
The create function of a model is called every time you create some records of the model. The signature is the following: def create(cls, vlist) where vlist is a list of dictionaries, where each dictionary a key value for each field of the model. The key is the name of the field, and the value is the value used to create the record. And how can >I >instantiate and assign a different but related model to one of the >fields >of the first? Don't understand the question. Can you put clarify or put an example? > >Happy new year! >Mariano -- Enviado desde mi teléfono Android con K-9 Mail. Disculpa mi brevedad
