netbox-community / netbox-qrcode

NetBox Plugin for generate QR Codes
Apache License 2.0
209 stars 31 forks source link

Adding Text from Custom Fields to QRCode Text #59

Closed cmcknz77 closed 9 months ago

cmcknz77 commented 10 months ago

I'm having a mare trying to get the contents of a custom field added to my QRCode. I have a Custom Field called "What3Words" applied to my Site, Location and Rack models. image I have a Custom Field called "What3Words" applied to my Site, Location and Rack models. image

The config section in my configuration.py looks like this: image But the text of the custom field isn't printed on the QR Code.

Any ideas what I'm doing wrong?

k01ek commented 9 months ago

Try cf.What3Words instead of cf.cf_What3Words in your config.

cmcknz77 commented 9 months ago

Thanks @k01ek That's got it.

cmcknz77 commented 9 months ago

Thanks @k01ek That's got it.