How to create a choicefield in orientdb


#1

Hi,

I want a choice field how do i implement in orientdb using pyorient.

Similar to this Django implementation

class Foo(models.Model):
GENDER_CHOICES = (
(‘M’, ‘Male’),
(‘F’, ‘Female’),
)
gender = models.CharField(max_length=1, choices=GENDER_CHOICES)