Skip to content

Use existing object by foreign_key relationship #448

@egorgam

Description

@egorgam

Hello! I have data generation script based on model bakery recipes. When I use foreign_key, a new data is generating, and it brakes unique constraint in some cases. Can I create data by make_recipe, and use existing instance for making relations?

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