Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement dumpdata view #424

Merged
merged 1 commit into from
Dec 11, 2023
Merged

feat: implement dumpdata view #424

merged 1 commit into from
Dec 11, 2023

Conversation

b1rger
Copy link
Contributor

@b1rger b1rger commented Nov 20, 2023

This feature provides ways to serialize the data of an APIS instance to
be able to import it in a freshly installed instance later on.

The main logic is implemented in the utils.helper.datadump_serializer
method. It serializes the important models to json - with natural
foreign keys.

There is both a view ('/apisdumpdata.json') and an admin command
('apisdumpdata') that output the serialized data as HttpResponse or to
stdout.

Closes: #273

@b1rger b1rger force-pushed the birger/273-dumpdata branch 3 times, most recently from 954bb6c to 961c0a5 Compare November 20, 2023 14:53
@b1rger b1rger marked this pull request as ready for review November 21, 2023 12:14
@b1rger b1rger force-pushed the birger/273-dumpdata branch 2 times, most recently from 0db11e0 to 2603c75 Compare November 30, 2023 09:59
This feature provides ways to serialize the data of an APIS instance to
be able to import it in a freshly installed instance later on.

The main logic is implemented in the `utils.helper.datadump_serializer`
method. It serializes the important models to json - with natural
foreign keys.

There is both a view ('/api/dumpdata') and an admin command
('apisdumpdata') that output the serialized data as API Response or to
stdout.

Closes: #273
@b1rger b1rger merged commit 9115fc9 into main Dec 11, 2023
7 checks passed
@b1rger b1rger deleted the birger/273-dumpdata branch December 11, 2023 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a way to export/import all content
1 participant