1. Bruce Kroeze
  2. django-livesettings
  3. Issues
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:

{{{

!python

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/values.py:215

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

Thanks!

Evgeny.

Comments (0)

  1. Log in to comment