clinic/netforce_clinic/models/nation.py

14 lines
285 B
Python

from netforce.model import Model, fields
class Nation(Model):
_name="clinic.nation"
_string="Nationality"
_key=['code']
_fields={
"name": fields.Char("Name",required=True,search=True),
"code": fields.Char("Code",search=True),
}
Nation.register()