Added a MonthYear field, fixed some field required values and fixed

validation functions. Added numeric state abbreviation capability.
So far everything appears to be working good.
This commit is contained in:
Binh 2011-06-04 15:46:41 -05:00
parent 5781cbf335
commit a0014ca451
4 changed files with 173 additions and 35 deletions

View file

@ -10,6 +10,7 @@ class Model(object):
field = getattr(self, key)
if not field.name:
setattr(field, 'name', key)
setattr(field, 'parent_name', self.__class__.__name__)
def __setattr__(self, key, value):
if hasattr(self, key) and isinstance(getattr(self, key), Field):