Skip to content

Validation of model fields before saving #15

@mortenwh

Description

@mortenwh

By default, Django does not validate model fields before saving. This can, however, be done using the full_clean() method.

  • Consider if we should validate model fields (in particular the Dataset model) when new instances are created (I have added a validator to the entry_id-field)

  • Implement model validation before save() (possibly using signals)

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