Advertisement
kastielspb

Get Choices identifier by value

Mar 4th, 2019
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. # to get key by value
  2. dict(map(
  3.     reversed,
  4.     DECLARANT_TYPE._identifier_map.items()
  5. ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement