Commit cd970d5c authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

don't make latitude and longitude required

--HG--
branch : stable
parent c7112c1f2e8d
......@@ -19,9 +19,9 @@ class PostalAddress(EntityType):
country = String(fulltextindexed=True, maxsize=256,
internationalizable=True) # see static-message.pot
state = String(fulltextindexed=True, maxsize=256)
latitude = Float(required=True, constraints=[IntervalBoundConstraint(-90, 90)],
latitude = Float(constraints=[IntervalBoundConstraint(-90, 90)],
description=_('latitude in degree'))
longitude = Float(required=True, constraints=[IntervalBoundConstraint(-180, 180)],
longitude = Float(constraints=[IntervalBoundConstraint(-180, 180)],
description=_('longitude in degree'))
class IMAddress(EntityType):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment