Skip to content
Discussion options

You must be logged in to vote

I was just saying python's print() gives you an example of the returned data, you shouldn't use that in the template.

I just set up a simple test using export templates and I am having no problem with getting the device position in the format you're looking for. Again, the output that you get from nbshell, Decimal('20'), is just how the data is displayed - the actual returned data is the number alone.

My entire code for this test is exactly as shown below. I would recommend setting up an identical test for yourself and using that as a starting place for troubleshooting.

  • The template loops over a queryset of any device list you want to export.
  • d is equal to the current device in the loop.
  • T…

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@nikunj-tele
Comment options

Comment options

You must be logged in to vote
8 replies
@nikunj-tele
Comment options

@kyerlasswell
Comment options

@nikunj-tele
Comment options

@kyerlasswell
Comment options

Answer selected by nikunj-tele
@nikunj-tele
Comment options

@kyerlasswell
Comment options

@nikunj-tele
Comment options

@kyerlasswell
Comment options

Comment options

You must be logged in to vote
2 replies
@kyerlasswell
Comment options

@nikunj-tele
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants