We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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": ' + str(list(q)) + '}'')
Do sent seem to work ? Any solutions ?
The text was updated successfully, but these errors were encountered:
For everyone stumbling upon the same problem: I got this to work as follow:
from django.core.management import call_command ids = tuple(UploadedFile.objects.filter(user=user).values_list('pk', flat=True)) call_command('dump_object', 'validate.UploadedFile', *ids, '--no-follow'')
Sorry, something went wrong.
No branches or pull requests
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": ' + str(list(q)) + '}'')
Do sent seem to work ? Any solutions ?
The text was updated successfully, but these errors were encountered: