json provided for gazetteer works in the following order:
gazetteer.AdminCounty.json
gazetteer.HistoricCounty.json
gazetteer.Country.json
But fails loading gazetteer.Place.json:
File "/usr/local/lib/python3.11/site-packages/django/core/management/commands/loaddata.py", line 102, in handle
self.loaddata(fixture_labels)
File "/usr/local/lib/python3.11/site-packages/django/core/management/commands/loaddata.py", line 163, in loaddata
self.load_label(fixture_label)
File "/usr/local/lib/python3.11/site-packages/django/core/management/commands/loaddata.py", line 251, in load_label
for obj in objects:
File "/usr/local/lib/python3.11/site-packages/django/core/serializers/json.py", line 70, in Deserializer
yield from PythonDeserializer(objects, **options)
File "/usr/local/lib/python3.11/site-packages/django/core/serializers/python.py", line 163, in Deserializer
raise base.DeserializationError.WithData(
django.core.serializers.base.DeserializationError: Problem installing fixture '/app/gazetteer/fixtures/gazetteer.Place.json': ['“” value must be an integer.']: (gazetteer.place:pk=1) field_value was ''
The fixture file does include pk fields though (first entry for example):
Loading
json
fixtures produced by https://github.com/Living-with-machines/alto2txt2fixture requires a correct ordering. Thus far, makingcreated_at
andmodified_at
optional is required. Once modified:json
provided forgazetteer
works in the following order:gazetteer.AdminCounty.json
gazetteer.HistoricCounty.json
gazetteer.Country.json
But fails loading
gazetteer.Place.json
:The fixture file does include
pk
fields though (first entry for example):