Skip to content

Commit

Permalink
gender is n more required
Browse files Browse the repository at this point in the history
  • Loading branch information
rochacbruno committed Jan 29, 2012
1 parent d6e44e3 commit 19640bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/datamodel/user.py
Expand Up @@ -135,7 +135,7 @@ def set_validators(self):
self.entity.extra_links.requires = IS_EMPTY_OR(IS_LIST_OF(IS_URL(allowed_schemes=['https', 'http'], prepend_scheme='http')))

self.entity.photo_source.requires = IS_IN_SET(config.get_list('auth', 'photo_source'))
self.entity.gender.requires = IS_IN_SET(config.get_list('auth', 'gender'))
self.entity.gender.requires = IS_EMPTY_OR(IS_IN_SET(config.get_list('auth', 'gender')))
self.entity.privacy.requires = IS_IN_SET(config.get_list('auth', 'privacy'))
#date format not allowed on gae
if not request.env.web2py_runtime_gae:
Expand Down

0 comments on commit 19640bf

Please sign in to comment.