openlibhums / janeway

A web-based platform for publishing journals, preprints, conference proceedings, and books
https://janeway.systems/
GNU Affero General Public License v3.0
168 stars 63 forks source link

backup command writes non-json content into janeway.json #546

Closed mdlincoln closed 5 years ago

mdlincoln commented 5 years ago

When running python manage.py backup on v1.3, the resulting janeway.json starts with messages from the app about loading plugin urls, before the valid JSON content begins:

Loaded URLs for back_content
Loaded URLs for pandoc_plugin
[
{
    "model": "contenttypes.contenttype",
    "pk": 1,
    "fields": {
        "app_label": "admin",
        "model": "logentry"
    }
...
ajrbyers commented 5 years ago

Cheers @mdlincoln. TBH, this backup procedure is full of holes as re-importing the JSON into a freshly migrated DB wont work straight off anyway.

Working on a fix for this though, will let you know.