These are chat archives for allegro/ralph

7th
Mar 2016
aveseb
@aveseb
Mar 07 2016 13:58

Hi guys, I am trying to import supports with a csv file. I got this error: Line number: 1 - Cannot assign None: "Support.baseobject_ptr" does not allow null values.

Traceback (most recent call last):
File "/home/vagrant/lib/python3.4/site-packages/import_export/resources.py", line 360, in import_data
self.import_obj(instance, row, real_dry_run)
File "/home/vagrant/lib/python3.4/site-packages/import_export/resources.py", line 226, in import_obj
self.import_field(field, obj, data)
ValueError: Cannot assign None: "Support.baseobject_ptr" does not allow null values.

xliiv
@xliiv
Mar 07 2016 14:20
@aveseb here is a pull request fixing your case: https://github.com/allegro/ralph/pull/2271/files
aveseb
@aveseb
Mar 07 2016 14:51
@xliiv it seems thats ok for previsualization but I got this error : AttributeError: Cannot set values on a ManyToManyField which specifies an intermediary model. Use supports.BaseObjectsSupport's Manager instead.