Skip to content

Grid submit form with unique field causes 500 when pressing submit #1009

@steweiknowit

Description

@steweiknowit

tested on version 1.20251115.1

steps

  1. some field defined with unique=True
  2. on submit form (the default one) from grid add one row with some value on that field
  3. try to add another row with the same value on that field
  4. 500 page and error "sqlite3.IntegrityError: UNIQUE constraint failed" - similar result with pqsl (psycopg2)
  • expecting a red warning text "unique field already has value" or similar on the field like other validations

kind regards
Stefan

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