Skip to content
This repository was archived by the owner on Nov 28, 2021. It is now read-only.

Self referential properties cause infinite recursion  #94

@devraj

Description

@devraj
class ProtocolDocumentArea(types.Model):

    protocol_document_area_id = types.Integer()
    standard_edition_id = types.Integer()

    area_name = types.String(max_length=255)
    area_number = types.Integer()

    created_date = types.DateTime()
    last_updated_date = types.DateTime()

#: Defines a self referencial relationship
ProtocolDocumentArea.sub_areas = types.Array(element_template=ProtocolDocumentArea())

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions