add DjangoEnum class and Table._select method