Skip to content

no deepcopy #127

@user706

Description

@user706

"Bug": copy.deepcopy is not possible.

from jsonmodels import models, fields, validators
import copy

class A(models.Base):
    x = fields.IntField(required=True)

a1 = A(x = 1)
a2 = copy.deepcopy(a1)
print(a1.x)
print(a2.x)                # fails in this line

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions