Lightweight enum representation for Django and Javascript