Skip to content

Commit

Permalink
Remove unnecessary models from data.json (#9096)
Browse files Browse the repository at this point in the history
They are not used in tests, and just get in the way when you're
reviewing diffs.
  • Loading branch information
SpecLad authored Feb 12, 2025
1 parent db293b7 commit df5678a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1,093 deletions.
5 changes: 4 additions & 1 deletion tests/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ for i, color in enumerate(colormap):
To backup DB and data volume, please use commands below.

```console
docker exec test_cvat_server_1 python manage.py dumpdata --indent 2 --natural-foreign --exclude=auth.permission --exclude=contenttypes --exclude=django_rq > shared/assets/cvat_db/data.json
docker exec test_cvat_server_1 python manage.py dumpdata --indent 2 --natural-foreign \
--exclude=admin --exclude=auth.permission --exclude=authtoken --exclude=contenttypes \
--exclude=django_rq --exclude=sessions \
> shared/assets/cvat_db/data.json
docker exec test_cvat_server_1 tar --exclude "/home/django/data/cache" -cjv /home/django/data > shared/assets/cvat_db/cvat_data.tar.bz2
```

Expand Down
Loading

0 comments on commit df5678a

Please sign in to comment.