openwisp / openwisp-controller

Network and WiFi controller: provisioning, configuration management and updates, (pull via openwisp-config or push via SSH), x509 PKI management and more. Mainly OpenWRT, but designed to work also on other systems.
https://openwisp.io/docs/dev/controller/
Other
556 stars 182 forks source link

[feature] Make Device verbose_name configurable #287

Closed nemesifier closed 4 years ago

nemesifier commented 4 years ago

In some cases, openwisp controller is used in specialized use cases, (Lora Gateways, WiFi hotspots, Routers), in these cases users prefer to use a more specialized word rather than the generic device. We can easily accommodate this by making the verbose_name of Device configurable.

codesankalp commented 4 years ago

@nemesisdesign I want to work on this issue.

NoumbissiValere commented 4 years ago

You can go ahead @codesankalp

codesankalp commented 4 years ago

Thannnks @NoumbissiValere

codesankalp commented 4 years ago

@NoumbissiValere @nemesisdesign where should i add verbose_name for this issue?

pandafy commented 4 years ago

@codesankalp you will need to make verbose_name of Device model configurable. The place to add verbose_name is Meta class of Device model. Please refer to Django's documentation to learn more about verbose_name and other Meta options if you are in doubt.

You can take a look at implementation of other configurable settings like HARDWARE_ID_OPTIONS for reference.

This is what I understand from the issue description, I hope @nemesisdesign meant the same, :smile:

codesankalp commented 4 years ago

Thanks @pandafy for help :+1: