Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using descriptor_class from Django 3.0 #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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