Skip to content

Make loaddata command more useful

Nils Brinckmann requested to merge make-loaddata-command-more-useful into main

This changes allows us to make more use of the loaddata command.

We know can specify that we want to update data, based on some different criteria then the primary key, allowing us to write something like:

[
  {
    "fields": {
        "name": "GFZ",
        "url": "https://rz-vm65-dev.gfz-potsdam.de"
    },
    "model": "TsmEndpoint",
    "unique": ["name"]
  }
]

This allows us to overwrite the url value for the entry with name = GFZ.

Merge request reports

Loading