Pyorient choicefield

15 views
Skip to first unread message

Deep

unread,
Nov 20, 2018, 6:54:45 AM11/20/18
to OrientDB
Hi,

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

Similar to Django implementation

class Foo(models.Model):
    GENDER_CHOICES = (
        ('M', 'Male'),
        ('F', 'Female'),
    )
    gender = models.CharField(max_length=1, choices=GENDER_CHOICES)
Reply all
Reply to author
Forward
0 new messages