-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fixes: #18447 - Fix sorting by mac_address
field
#18450
Conversation
* Disable sorting by `mac_address` for legacy `mac_address` field for Device and VM Interfaces * Ensure `primary_mac_address` field is included in field list for Device and VM Interfaces
@DanSheps Actually I noticed that I'm not sure if your solution catches all four of these cases, or if the way it is on |
That is what I did (more or less). I didn't want to remove If we add the accessor, it unfortunately overrides the
IMO |
OK -- so should we disable sorting on that field in |
Wait, InterfaceTable doesn't have However maybe we just remove mac_address all together and use |
Invalid field names that are persisted in user prefs are filtered out in django-tables before being applied, I found in working on an earlier issue. I think it's safe to change field names (though it's reasonably easy to test too, just sort on that column and then rename it, see if anything breaks). |
Fixes: #18447 - Fix sorting by
mac_address
fieldmac_address
for legacymac_address
field for Device and VM Interfacesprimary_mac_address
field is included in field list for Device and VM Interfaces