No that's not possible out of the box right now. This PR here would allow to implement such a thing: https://github.com/openwisp/django-netjsonconfig/pull/74 The value of 'data-options' could become a django setting which could also be modified.
I don't have time to implement such a thing though, so if you want to help out, you could start by: - reading http://openwisp.io/docs/developer/contributing.html - review/test the patch sent in the PR linked above to ensure everything works normally after the patch is merged - then I can merge it and you can start adding the setting if you want Federico On Tue, May 15, 2018 at 3:45 PM Deepak rocks <[email protected]> wrote: > > Thanks Fed for such quick reply, > It really helped alot and now I am able to add New Backend and it worked > like charms. > > And I am using OpenWISP controller for this. One more observation is If I > want to remove the "Object Properties" from the template UI, what process I > have to follow? > As per my understanding, the html UI code is getting generated from python > code base. > > Is there a way which will allow me to modify the default Add template UI?? > > > On Tuesday, May 15, 2018 at 3:46:05 PM UTC+5:30, Federico Capoano wrote: > >> See here: >> https://github.com/openwisp/django-netjsonconfig#netjsonconfig_backends >> >> You could have: >> >> NETJSONCONFIG_BACKENDS = ( >> ('pythonpath.to.your.Backend', 'NewBackend'), >> ('netjsonconfig.OpenWrt', 'OpenWRT'), >> ('netjsonconfig.OpenWisp', 'OpenWISP'), >> ) >> >> Or you can also remove the entries you don't need or don't want to show. >> >> This must go in the django settings file, if you are using >> ansible-openwisp2 you should configure it in the vars section like the >> following: >> >> vars: >> openwisp2_extra_django_settings_instructions: >> - | >> NETJSONCONFIG_BACKENDS = ( >> ('pythonpath.to.your.Backend', 'NewBackend'), >> ('netjsonconfig.OpenWrt', 'OpenWRT'), >> ('netjsonconfig.OpenWisp', 'OpenWISP'), >> ) >> >> I hope this helps. >> Fed >> >> On Tue, May 15, 2018 at 12:40 PM Deepak rocks <[email protected]> >> wrote: >> > Hi, >>> >>> I want to add new backend for templates. By default OpenWRT/LEDE and >>> OenWISP Firmware1.x is coming as drop down. >>> I have followed the below step to add NewDevice Backend. >>> >>> - cloned the netjsonconfig/backend/openwrt module and created a new >>> backend and changed >>> name from "OpenWrt" to "NewDevice". >>> >>> >>> 1. What all changes required in django-netjsonconfig and >>> openwisp-controller ? >>> >>> If anyone have any idea then it would be very helpful. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "OpenWISP" group. >>> >> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >> >> >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > You received this message because you are subscribed to the Google Groups > "OpenWISP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
