META variable in calculated tests

88 views
Skip to first unread message

Cody Crewson

unread,
Oct 1, 2018, 3:32:42 PM10/1/18
to QATrack+
I looked for some documentation describing all of the information available via the META variable but I could not find a definition. Is there one?

Thank you

Randle Taylor

unread,
Oct 1, 2018, 3:55:26 PM10/1/18
to Cody Crewson, QATrack+

On Mon, 1 Oct 2018 at 15:32, Cody Crewson <cody.c...@gmail.com> wrote:
I looked for some documentation describing all of the information available via the META variable but I could not find a definition. Is there one?

Thank you

--
You received this message because you are subscribed to the Google Groups "QATrack+" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qatrack+u...@googlegroups.com.
To post to this group, send email to qat...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cody Crewson

unread,
Oct 1, 2018, 7:17:51 PM10/1/18
to QATrack+
Randle

I did find the META description in the first link but maybe erroneously assumed that the way it was worded implied that there were more than just those 6 variables available. Specifically unit Serial number would be helpful as it's a more universal index when looking outside the QAtrack site itself. 

Cody

Randle Taylor

unread,
Oct 1, 2018, 7:24:58 PM10/1/18
to Cody Crewson, QATrack+
To get the unit serial number you need to use the Django ORM:

from qatrack.units.models import Unit
unit = Unit.objects.get(number=META["unit_number"])
serial_no = unit.serial_number

Randy

Cody Crewson

unread,
Oct 2, 2018, 11:58:27 AM10/2/18
to QATrack+
Oh wow, thank you. 

At some point in the near future I'll learn django

Amit Prasad

unread,
Aug 28, 2025, 1:12:57 PM (10 days ago) Aug 28
to QATrack+

Thanks 
Reply all
Reply to author
Forward
0 new messages