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 #73

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

Second pull request because i messed up the foreign key related names in the first one :-)

landscape-bot commented 8 years ago

Code Health Code quality remained the same when pulling 72609d6 on RaphaelKimmig:id_foreign_key_defaults into 4c8e22e on paulocheque:master.

paulocheque commented 8 years ago

Nice! I posted a comment in one of the lines.

RaphaelKimmig commented 8 years ago

Fixed :-)

landscape-bot commented 8 years ago

Code Health Repository health increased by 0.10% when pulling 0d8bb19 on RaphaelKimmig:id_foreign_key_defaults into 4c8e22e on paulocheque:master.

paulocheque commented 8 years ago

Amazing!