Skip to content

Conversation

baobab-ai
Copy link

@baobab-ai baobab-ai commented Feb 6, 2020

Feel free to ask if you have any questions about the pull request.

'by_id': {self.id: self},
'by_name': {self.name: self}
}
cls._meta._field_tof['by_id'].update({self.id: self})
Copy link
Author

@baobab-ai baobab-ai Feb 7, 2020

Choose a reason for hiding this comment

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

@mom1 The original pull request had an issue, now this should do the work, originally there was setattr with nested setdefault. It was quite hard to read and understand. Also, I hope that a good idea to add more tests for core functionality.

@mom1
Copy link
Owner

mom1 commented Feb 8, 2020

Thanks for the pull request. Now I don’t have time, but I’ll definitely look at your changes.

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