Skip to content

Commit 612c6db

Browse files
committed
Fix bug in SELECT_CHOICES relying on Django not actually converting the database data to integers
- Legacy-Id: 3787
1 parent 9ae5f6a commit 612c6db

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ietf/ipr/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
("0", 'NO'),
3030
("1", 'YES'),
3131
("2", 'NO'),
32+
(0, 'NO'), # with new schema, choices are really numeric
33+
(1, 'YES'),
34+
(2, 'NO'),
3235
)
3336
STATUS_CHOICES = (
3437
( 0, "Waiting for approval" ),

0 commit comments

Comments
 (0)