Skip to content

mongoengine unset function inside update operation did not handle default attributes of model object. #2534

Description

@ujjawalpoudel

MODEL PROPERTY

status = StringField(default="A") # A, B, C

UNSET FUNCTION

model_class.update(unset__status=1)
:- This operation delete status from given model

MODIFY

model_class.status = 'C'
model_class.save()
:- This function did not create status row in database.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions