Closed kennknowles closed 11 years ago
Just confirmed that this still occurs with a clone of the latest.
Hello @kennknowles and thanks a lot for this ticket. It seems somehow related to the first issue in the ticket #3.
Could you please show me which model you're exporting, and which column?
Thanks!
I have the feeling this is actually an issue with django-inspect-model, but I have no proof yet, nor a way to reproduce the issue!
Hello @kennknowles, I believe I found the issue ;)
Can you please confirm that the issue was for a model being pointed to by another one via a OneToOneField?
The latest trunk version should fix your issue in this case, and I'll publish a new version on PyPI in a few days.
I have the same error. Same steps to reproduce. Model fields in question are:
[<django.db.models.fields.AutoField: id>, <django.db.models.fields.DateTimeField: submission_datetime>, <django.db.models.fields.FloatField: duration>, <django.db.models.fields.related.ForeignKey: user>, <django.db.models.fields.CharField: platformid>, <django.db.models.fields.BooleanField: is_gold_standard>, <django.db.models.fields.TextField: gold_reasoning>, <django.db.models.fields.related.ForeignKey: task_model>, <django.db.models.fields.IntegerField: task_id>, <django.db.models.fields.CharField: clear_view>, <django.db.models.fields.CharField: windows_open>, <django.db.models.fields.IntegerField: how_many>]
I have a ForeignKey to ContentType and an id field that together form a GenericForeignKey. I'm taking a wild guess that maybe that exotic field type is causing the problem?
Sorry for the lack of reply for a bit. I still haven't carved out the time to check that this solves it. I am still tracking this, though.
This does seem to have solved it. Thanks.
Can you please leave a comment here when this has been released to pypi?
wow, this took much longer than I thought, sorry for the delay ;) It's now released (version 0.5 on PyPI)
Lovely, thanks!
Hi there,
I'm taking this library for a test drive, and hit this snag:
I don't have a minimal distilled example, but I can give very simple steps to reproduce:
Environment is Python 2.7, Django 1.5.1, django-data-exports 0.4
pip install django-data-exports
data_exports
toINSTALLED_APPS
urls.py
data_exports/export_detail_csv.html
Now whenever I go to the detail page of that export, I get the above error.
I've browsed the relevant Django code, but I'm afraid I could not isolate the problem.