Skip to content

Conversation

@arthanson
Copy link
Collaborator

@arthanson arthanson commented Sep 18, 2023

Fixes: #13757

As per Django issue https://code.djangoproject.com/ticket/34847 problem arises as DeviceType has variable references in init method. Recommendation is to access vars in init with self.__dict as they state this will probably be documented this way as there is no good fix for dereferenced vars except for this.

Changed ConfigContext test case save devicetype to catch if this ever regresses.

Copy link
Member

@abhi1693 abhi1693 left a comment

Choose a reason for hiding this comment

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

I'm not sure if it's really possible, but a test case to ensure this doesn't creep in later

@arthanson arthanson changed the title 13757 Fix ConfigContext reference to DeviceType DRAFT: 13757 Fix ConfigContext reference to DeviceType Sep 18, 2023
@arthanson arthanson changed the title DRAFT: 13757 Fix ConfigContext reference to DeviceType 13757 Fix ConfigContext reference to DeviceType Sep 18, 2023
@arthanson arthanson marked this pull request as ready for review September 18, 2023 20:36
@jeremystretch
Copy link
Member

Thanks @arthanson!

@jeremystretch jeremystretch merged commit 8e251ac into develop Sep 20, 2023
@jeremystretch jeremystretch deleted the 13757-config-context-device-type branch September 20, 2023 13:56
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config Context Fails to assign to "Device types"

4 participants