paulocheque / django-dynamic-fixture

A complete library to create dynamic model instances for testing purposes.
http://django-dynamic-fixture.readthedocs.io/
Other
391 stars 67 forks source link

make ForeignKey defaults that are ids work #72

Closed RaphaelKimmig closed 8 years ago

RaphaelKimmig commented 8 years ago

Default values for fields that map to model instances should be the field they reference. See https://github.com/django/django/blob/b60375d4bbb848af7950379e2f35a1a65f7a2591/docs/ref/models/fields.txt#L223