Skip to content

fixtures #513

@alvarogf97

Description

@alvarogf97

Hey there, I have been trying to create objects from a json file with the loaddata command without success. Is there anything special that I need write in the document?

[
  {
    "model": "animals.DogBreed",
    "pk": 1,
    "fields": {
      "polymorphic_ctype": 24,
      "name": { "en": "Affenpinscher", "es": "" },
      "weight": { "bounds": "[)", "lower": "3", "upper": "6" },
      "life_span": { "bounds": "[)", "lower": "10", "upper": "12" },
      "origins": [187, 118],
      "tags": [1, 2, 3, 4, 5, 6]
    }
  }
]

Thanks in advance

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