clinic/netforce_clinic/models/department_profile.py

13 lines
337 B
Python
Raw Normal View History

2015-02-10 01:28:30 +00:00
from netforce.model import Model, fields
class DepartmentProfile(Model):
_name="clinic.department.profile"
_string="Department Profile"
_fields={
'name': fields.Char("Name", required=True, search=True),
"departments": fields.Many2Many("clinic.department","Departments"),
}
DepartmentProfile.register()