Specify two default values for a single attribute in django model

时间:2015-06-26 09:27:06

标签: python django-models

I have a model called AttendenceData in my models.py and it has attributes employee_id, type and datetime.

The type attribute is a stringfield with two possible values IN/OUT.

How can i do this in django model?

TIA

0 个答案:

没有答案