Issue #12 new

IntegerValue does not work with choices and default

Evgeny Fadeev
created an issue

Hello, I'm using livesettings and found this strange issue:

registering a value like this:



IntegerValue( FORUM_DATA_RULES, 'DEFAULT_QUESTIONS_PAGE_SIZE', choices=((10,'10'),(30,'30'),(50,'50'),), default=30, description=_('Number of questions to list by default') ) }}}

then when I go to /settings url there's an error

TypeError variable of type 'int' is not iterable in livesettings/

does it mean I have to use strings for values with pre-set choices?



Comments (0)

  1. Log in to comment