[openwisp] GCI pre-kickoff sprint!

2018-10-18 Thread Federico Capoano
Hi everyone, as many of you may know, the Google Code-In contest starts on October 23 and OpenWISP is participating . This is an invite for everyone to take part in the Google Code-In Sprint we will be

[openwisp] Re: Correct way to link device ant template programmatically

2018-10-18 Thread Federico Capoano
Hi Arthur, sorry for my delayed response. Here's the code to add a template to a device. device = Device.objects.get(id='') template = Template.objects.get(id='') device.config.templates.add(template) You can also add more templates in the same call. device.config.templates.add(t1, t2, t3)