is there a way to combine those 2 lines of code?
a = terminal.provisioning_set.first()
b = a.usergroup.id
the result is coming from:
terminal = Terminal.get_object(terminal_id, request.user)
I like to see something like this:
result = terminal.provisioning_set.first(usergroup.id)