django-fixture-magic
django-fixture-magic copied to clipboard
Utilities to extract and manipulate Django Fixtures.
I've noticed that using `dump_object --natural` and then trying to merge multpile fixtures using `merge_fixtures` does not work - `merge_fixtures` is expecting `pk` to be present. This PR "fixes" that....
Could you advise how to use the dump_object command with query programatically using the call_command ? Consider this from django.core.management import call_command q = UploadedFile.objects.filter(user=user).values('pk') call_command('dump_object', 'validate.UploadedFile', '--no-follow', query='\'{"pk__in": '...
Pip does find 0.1.4: ``` $ pip search django-fixture-magic | grep django-fixture-magic django-fixture-magic (0.1.4) - A few extra management tools to handle fixtures. ``` But when I try to install...
Everything I tried would yield the following error, even on internal Django models: ``` CommandError: object_class must be provided in the following format: app_name.model_name Try calling dump_object with --help argument...
Using the following Python and Django Python 3.4.6 Django 1.10.7 When I run the merge_fixtures command ``` python manage.py merge_fixtures foo.json bar.json baz.json > all_fixtures.json ``` It shows the following...
Environment: Django 3.0.6 In my case the app does not follow relations when exporting data with dump_object Simplified models: ``` class Member(BaseModel): email = models.EmailField(unique=True) ``` ``` class Subscription(BaseModel): member...
Added --output, -o argument (same as in dumpdata). Reason is that if you work directly in manage.py shell, you do not have option to output stdout to file (>).
I created a fixture using dump_object with --kitchensink option. `python manage.py dump_object --kitchensink tours.tour ids 400 > tours/fixtures/tours.json` I got the tours.json file. Now when I run tests, with the...
The dump_object command fails when receiving `'*'`, succeeds when receiving individual IDs. ``` $ ./manage dump_object service.model '*' /service/venv/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8;...