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
When I run dumpdata with geojson it doesn't detect any features.
Looked into it a bit and dumpdata passes a generator object to the serialize methods, and this serializer seems to expect queryset-like objects.
The text was updated successfully, but these errors were encountered:
It should work with lists, but indeed, not sure with generators... https://github.com/makinacorpus/django-geojson/blob/master/djgeojson/serializers.py#L346-L347
Instead of isinstance(queryset, list), we could check something like hasattr(queryset, '__iter__'). Don't hesitate to open a pull-request !
isinstance(queryset, list)
hasattr(queryset, '__iter__')
Sorry, something went wrong.
Leaving this here as a reference for how dumpdata calls the serializers https://github.com/django/django/blob/master/django/core/management/commands/dumpdata.py#L139 https://github.com/django/django/blob/master/django/core/management/commands/dumpdata.py#L160
No branches or pull requests
When I run dumpdata with geojson it doesn't detect any features.
Looked into it a bit and dumpdata passes a generator object to the serialize methods, and this serializer seems to expect queryset-like objects.
The text was updated successfully, but these errors were encountered: