Commit 4510266
committed
[fix] Avoid mutating device.name in _get_common_name openwisp#1300
This fixes an issue where device.name was modified in-place,
which could cause unexpected behavior due to Django ORM caching.
Fixes openwisp#13001 parent 45b24b6 commit 4510266
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | | - | |
| 895 | + | |
896 | 896 | | |
897 | 897 | | |
898 | | - | |
| 898 | + | |
899 | 899 | | |
900 | | - | |
| 900 | + | |
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
| |||
0 commit comments