Skip to content

Conversation

@ilu2112
Copy link
Contributor

@ilu2112 ilu2112 commented Sep 15, 2016

No description provided.

def _populate_instance_name(self, object):
if 'instance_name' not in self.properties or not isinstance(object, dict):
return
model_fields = ['profile']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line will force us to extend it each time when new ModelField is defined.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beside that - I've checked this solution and it seems that it's not working.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works for me. Will refactor and provide test case :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants