openwisp / openwisp-ipam

IP address space administration module of OpenWISP
https://openwisp.io/docs/dev/ipam/
BSD 3-Clause "New" or "Revised" License
104 stars 51 forks source link

[bug] Queries using organization name #99

Closed pandafy closed 2 years ago

pandafy commented 3 years ago

The code has some instances where subnets are created or retrieved from the database using organization name. Since organization name is not unique, we should use another unique parameter like slug

nemesifier commented 3 years ago

Found a similar but different issue: #101.

pandafy commented 2 years ago

I searched the codebase for "name" keyword and I didn't find any instance of Organization object being queried with name field. It might be possible that such instances were fixed in https://github.com/openwisp/openwisp-ipam/pull/97.

In my findings, this issue can be closed.