Fix #61, Compatibility code with django 1.5 + strenghten recursion prote...

...ction with related fields