Make factory.get work with Django 1.7
Refactoring due to the previous commit.
Fixed the object representation in order to pass the tests.