Doesn't handle django.contrib.contenttypes.generic.GenericRelation

Bug #1204044 reported by Kevin McDermott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Django Factory
New
Undecided
Unassigned

Bug Description

  File "/home/kevin/src/branch/lib/python2.7/site-packages/django_factory/factory.py", line 493, in make_one
    return self._create_one(model, True, [], attrs)
  File "/home/kevin/src/branch/lib/python2.7/site-packages/django_factory/factory.py", line 413, in _create_one
    instance, m2m_dict, fk_dict = self._generate_instance(model, save, attrs, not_including)
  File "/home/kevin/src/branch/lib/python2.7/site-packages/django_factory/factory.py", line 296, in _generate_instance
    use, value = self._generate_plain_value(model, field, attrs)
  File "/home/kevin/src/branch/lib/python2.7/site-packages/django_factory/factory.py", line 255, in _generate_plain_value
    value = self.generate_value(field)
  File "/home/kevin/src/branch/lib/python2.7/site-packages/django_factory/factory.py", line 548, in generate_value
    raise TypeError("Can't generate value for field: %s" % field)
TypeError: Can't generate value for field: <django.contrib.contenttypes.generic.GenericRelation: bugs>

Revision history for this message
Kevin McDermott (bigkevmcd) wrote :

Personally, I'd be happy if it just ignored these in _generate_instance.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.