Skip to content

TextField is not supported with unique value generation #331

@diesieben07

Description

@diesieben07

Describe the bug
A unique TextField is not treated the same as a unique CharField and no new unique value is generated.

To Reproduce

  1. Create a model with a TextField marked unqiue.
  2. Try to clone a model instance.
  3. Observe IntegrityError being thrown.

Expected behavior
TextField should be considered equivalent to CharField in terms of unique value generation.

Desktop (please complete the following information):

  • Version 2.5.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions