clinic/netforce_clinic/models/nation.py

14 lines
285 B
Python
Raw Normal View History

2014-10-01 16:14:52 +00:00
from netforce.model import Model, fields
class Nation(Model):
_name="clinic.nation"
_string="Nationality"
2015-03-17 01:49:03 +00:00
_key=['code']
2014-10-01 16:14:52 +00:00
_fields={
2015-03-17 01:49:03 +00:00
"code": fields.Char("Name",required=True,search=True),
"name": fields.Char("Code",search=True),
2014-10-01 16:14:52 +00:00
}
Nation.register()