sqlalchemy

This commit is contained in:
2014-01-30 22:55:15 +01:00
parent 2eb63c917b
commit 02a987b39d
8 changed files with 77 additions and 75 deletions

View File

@ -268,7 +268,7 @@ class Property(object):
:type propname: string
"""
if self._opt is not None and self._opt.impl_getrequires() is not None \
and propname in self._opt.impl_getrequires():
and propname in self._opt._calc_properties:
raise ValueError(_('cannot append {0} property for option {1}: '
'this property is calculated').format(
propname, self._opt.impl_getname()))