openwisp / openwisp-utils

Python and Django utilities shared between different openwisp modules
https://openwisp.io/docs/dev/utils/
BSD 3-Clause "New" or "Revised" License
74 stars 72 forks source link

[bug] CopyableFieldsAdmin.get_fields() modifies the order of fields #335

Closed nemesifier closed 1 year ago

nemesifier commented 1 year ago

The change introduced in https://github.com/openwisp/openwisp-utils/commit/b10d3cdd1f3eadf3d224ccb5f078221b181f6721 has an intended side effect, the order of the fields is altered, which is something we do not want.

Here's the result in the add organization form:

Screenshot from 2023-03-22 20-31-01