scieloorg / opac_schema

SciELO OPAC Schema.
1 stars 10 forks source link

Criar o modelo Collab e o campo Article.collabs #112

Open robertatakenaka opened 13 hours ago

robertatakenaka commented 13 hours ago

Criar o modelo Collab e o campo Article.collabs

class Collab(EmbeddedDocument):
    """
    Model responsible for collab.

    Example of this model:

            {
                "name" : "Institution",
            }

    """
    name = StringField()
collabs = EmbeddedDocumentListField(Collab)

Baseado em: https://github.com/scieloorg/opac_schema/blob/577283b184b143d0ca11914593fff0c01cdf5e39/opac_schema/v1/models.py#L733