From 612c6db6cd2022fad98d5d7910b58dfef08032eb Mon Sep 17 00:00:00 2001 From: Ole Laursen Date: Fri, 23 Dec 2011 16:47:38 +0000 Subject: [PATCH] Fix bug in SELECT_CHOICES relying on Django not actually converting the database data to integers - Legacy-Id: 3787 --- ietf/ipr/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ietf/ipr/models.py b/ietf/ipr/models.py index 0af284f0a..b716b228e 100644 --- a/ietf/ipr/models.py +++ b/ietf/ipr/models.py @@ -29,6 +29,9 @@ SELECT_CHOICES = ( ("0", 'NO'), ("1", 'YES'), ("2", 'NO'), + (0, 'NO'), # with new schema, choices are really numeric + (1, 'YES'), + (2, 'NO'), ) STATUS_CHOICES = ( ( 0, "Waiting for approval" ),