openwisp-controller
openwisp-controller copied to clipboard
[bug] Mac address is case sensitive
When creating a new device, if the mac address is inserted as lowercase, it's stored as lowercase. However, the openwisp-config agent always converts the mac address to uppercase.
We should automatically convert the mac address to the uppercase format in the model clean method, before the device key is automatically generated. This will ensure consistency.