gregmuellegger/django-autofixture — pull request #23 by jfyne (2013-10-31 15:25:09+00:00)
Title: Self referencing model support

To prevent max recursion depth errors when creating a model which references itself, I have slightly modified the behavior of generate_fk. When it detects that it is a self referencing foreign key field which allows None, instead of creating a new instance it just sets None. If the field does not allow None it throws a CreateInstanceError.

I think this is a sane default, your thoughts would be appreciated though.

Thanks!