id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 11859 Change type checking condition in validation of choices paluh nobody "I want to use instance of tuple subclass (instead of tuple instance) in IntegerField choices initialization. It's impossible because in core/management/validation.py (line 62) there is condition: {{{ if not type(c) in (tuple, list) or len(c) != 2: }}} Can it be changed to: {{{ if not (isinstance(c, tuple) or isinstance(c, list)) or len(c) != 2: }}} " closed Core (Other) dev fixed model, validation, choices Ready for checkin 1 0 0 0 0 0